Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
x1 carbon and resolution
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Mon Dec 15, 2014 10:18 am    Post subject: x1 carbon and resolution Reply with quote

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
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Mon Dec 15, 2014 11:21 am    Post subject: Reply with quote

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
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Mon Dec 15, 2014 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Mon Dec 15, 2014 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Tue Dec 16, 2014 5:55 am    Post subject: Reply with quote

Look at the output of
Code:
$ xrandr --prop

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
Code:
$ cvt -r 1920 1080
and copying its output into the xorg.conf monitor section too, adjusting PreferredMode to your new resolution.
Back to top
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Tue Dec 16, 2014 1:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 863
Location: Berlin

PostPosted: Tue Dec 16, 2014 2:38 pm    Post subject: Reply with quote

After Reboot everything works as expected. Thanks again chithanah.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum