View previous topic :: View next topic |
Author |
Message |
himpierre l33t
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Mon Dec 15, 2014 10:18 am Post subject: x1 carbon and resolution |
|
|
Hello.
I have probblems settings the X resolution on my lenovo x1 carbon. It comes with that insane high dpi resolution. (2560x1440). randr -q tells me there is for example a resolution like 1600x1200 but all my settings fail. I always end up with 2560x1440. Does someone have a working xorg snippet with a lower resolution?
thanks and cheers
t. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Mon Dec 15, 2014 11:21 am Post subject: |
|
|
Can you post the output of "xrandr" here?
himpierre wrote: | all my settings fail | What exactly did you try? A monitor section with the xrandr name as identifier and PreferredMode should be enough. |
|
Back to top |
|
|
himpierre l33t
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Mon Dec 15, 2014 8:11 pm Post subject: |
|
|
Hello.
Here my xrandr -q output
Code: |
~ $ xrandr -q
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 32767 x 32767
eDP1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 310mm x 174mm
2560x1440 60.0*+
1920x1440 60.0
1856x1392 60.0
1792x1344 60.0
1600x1200 60.0
1400x1050 60.0
1280x1024 60.0
1280x960 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
|
My current monitor section:
Code: |
~ $ cat /etc/X11/xorg.conf
Section "InputClass"
Identifier "Keyboard"
Option "XkbLayout" "de"
EndSection
Section "Monitor"
Identifier "Screen0"
Option "PreferredMode" "1600x1200"
EndSection
|
Thanks for your help. |
|
Back to top |
|
|
himpierre l33t
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Mon Dec 15, 2014 8:31 pm Post subject: |
|
|
Ha! Almost there:
Code: |
Section "Monitor"
Identifier "eDP1"
Option "Preferred Mode" "1600x1200"
EndSection
|
This works. Only now i have black bars left and right. So i must stretch this somehow. Any ideas on that?
cheers
t. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Tue Dec 16, 2014 5:55 am Post subject: |
|
|
Look at the output of
It should show a "scaling mode" property, which is probably "Full aspect" (or similar) now, and can be set to "Full" (or similar) using Code: | $ xrandr --output eDP1 --set "scaling mode" "Full" | (adjust for the actual property name)
However this will cause the image to appear stretched. You may want to create a custom 16:9 resolution for your monitor, e.g. using and copying its output into the xorg.conf monitor section too, adjusting PreferredMode to your new resolution. |
|
Back to top |
|
|
himpierre l33t
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Tue Dec 16, 2014 1:16 pm Post subject: |
|
|
Hello.
After getting a modeline with cvt i'm able to start the resolution with
Code: |
xrandr --output eDP1 --mode 1920x1080R
|
However. At the moment X starts still with 2560x1440. Preferred Mode is 1920x1080R. Maybe the R is the problem. Thanks so far.
cheers
t. |
|
Back to top |
|
|
himpierre l33t
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Tue Dec 16, 2014 2:38 pm Post subject: |
|
|
After Reboot everything works as expected. Thanks again chithanah. |
|
Back to top |
|
|
|