Re: dual monitor sleep problem

2013-02-21 Thread Ekram
Thanks for reply. I found bit tricky things. Running xscreensaver to rescue
me. Because logging of kills all my application running :(

My system is:
Debian Testing,
Intel HD4000
Kernel 3.7.1
Laptop: X230 Thinkpad

Cheers,
-Ekram


On Thu, Feb 21, 2013 at 12:03 AM, Vincent Bernat  wrote:

>  ❦ 20 février 2013 19:31 CET, Andre Klärner  :
>
> >> > Hi I have a strange problem in awesome 3.4.
> >> > I have dual monitor but when my monitor goes to sleep mode
> >> > sometimes one monitor never come up.
> >>
> >> I have the same problem on one host. I am pretty sure this has nothing
> >> to do with awesome (this is too low level for a window
> >> manager). However, I am able to fix the situation without logging out by
> >> using "xrandr --output DVI-1 --off". This is odd because it turns the
> >> output off, then on, without further interaction.
> >
> > Might this also work by running just "xrandr" once? If you don't change
> > anything it still tries to refresh the table of currently connected
> outputs
> > and the DDI-data.
>
> This does not work for me. It never happens on my home PC while it has
> always happened at work. Both running Debian unstable and the same
> awesome configuration.
>
> Home:
>  01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI
> Cedar PRO [Radeon HD 5450/6350]
>
> Work:
>  01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI
> RV620 LE [Radeon HD 3450]
> --
> # Okay, what on Earth is this one supposed to be used for?
> 2.4.0 linux/drivers/char/cp437.uni
>
> --
> To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
>


Re: How to change Awesome WM's DPI from 96 to 120?

2013-02-21 Thread Uli Schlachter
Hi,

On 20.02.2013 13:41, WANG Chao wrote:
[...]
> After some work, any X client's DPI is 120 except Awesome WM itself.
> Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96.

How are you setting the DPI everywhere else?

[...]
> Does anyone know how to setup the Awesome WM's DPI? Any comment is welcome!

Well, dunno. We are just using Pango. And I guess that Pango wants to be told
about the DPI value it should use. However, I have no idea which of the various
Gnome parts normally does this, all of which we don't use (gtk?).

If you want to do this by hand (and are using awesome 3.5), add this to your
rc.lua (and tell me if this actually works):

  require("lgi").PangoCairo.FontMap.get_default():set_resolution(120)

Cheers,
Uli
-- 
- He made himself, me nothing, you nothing out of the dust
- Er machte sich mir nichts, dir nichts aus dem Staub

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: How to change Awesome WM's DPI from 96 to 120?

2013-02-21 Thread Andre Klärner
On Thu, Feb 21, 2013 at 03:42:14PM +0100, Uli Schlachter wrote:
> On 20.02.2013 13:41, WANG Chao wrote:
> [...]
> > After some work, any X client's DPI is 120 except Awesome WM itself.
> > Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96.
> 
> How are you setting the DPI everywhere else?

Shouldn't one set this via the xorg.conf? I think there was an option to
set the DPI for each screen, which should be determined usually
automaticaly?

Regards, Andre

-- 
Andre Klärner


smime.p7s
Description: S/MIME cryptographic signature


Re: How to change Awesome WM's DPI from 96 to 120?

2013-02-21 Thread Paweł Rumian
2013/2/20 WANG Chao :

> Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96.

Isn't this a matter of selecting a font with higher DPI?

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: How to change Awesome WM's DPI from 96 to 120?

2013-02-21 Thread Thomas Jost
Le 21 février 2013 à 18:23 CET, Andre Klärner a écrit :
> On Thu, Feb 21, 2013 at 03:42:14PM +0100, Uli Schlachter wrote:
>> On 20.02.2013 13:41, WANG Chao wrote:
>> [...]
>> > After some work, any X client's DPI is 120 except Awesome WM itself.
>> > Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96.
>> 
>> How are you setting the DPI everywhere else?
>
> Shouldn't one set this via the xorg.conf? I think there was an option to
> set the DPI for each screen, which should be determined usually
> automaticaly?

AFAIK it's global per display, and I've had some trouble setting it from
xorg.conf.

However you can set it from your .xinitrc using "xrandr --fbmm". Here's
an example to set it to the actual DPI of your display instead of a
hard-coded value of 96 DPI:

xrandr --fbmm `xrandr | sed -n '/ connected / {s/.* \([0-9]\+\)mm x 
\([0-9]\+\)mm/\1x\2/p;q}'`


However, you won't need this if you're using the NVIDIA proprietary
driver, because they're doing The Right Thing™: the DPI is set to match
the DPI actually reported by your screen.

Other Xorg drivers (nouveau, intel, radeon or whatever), OTOH, read the
actual DPI from the screen, and then discard it and set it to 96 dpi "to
be consistent with Windows". But hey, don't worry, it's NOTABUG
(https://bugs.freedesktop.org/show_bug.cgi?id=23705).


Cheers,
-- 
Thomas/Schnouki


pgpXAjNRujv_7.pgp
Description: PGP signature


Re: How to change Awesome WM's DPI from 96 to 120?

2013-02-21 Thread André Pinhal
Hi all

You can set dpi of your screen at least in 4 ways:

1. Xorg.conf - setting the dpi value or the screen size in (mm)
2. In .Xresources or .Xdefaults
3. Using the command *xrandr*
4. When stating X with *startx* using the arguments -dpi

Relative to awesome I don't know... I would like to now...


But after all I'm disappointed... I've 2 laptops now, and I
was expecting that setting the correct DPI in each laptop they would
display the same font size... for example in *urxvt* where you set the font
size in pt units... But this doesn't happens...

Actually I was expecting that the fonts displayed in the screen had +- the
same size of the ones printed on a paper... But I can't achieve that.

Anyone can explain this? Thanks? And relative to awesome wm I would be very
happy if there was an working solution.


Thanks


__
Cumprimentos
André Pinhal