Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Trouble with Xorg on Thinkpad e520

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
petter.s
Posts: 7
Joined: 2012-01-17 13:59

[SOLVED] Trouble with Xorg on Thinkpad e520

#1 Post by petter.s »

Hi!
I have just installed the "standard" debian cd. After that I installed xorg and xmonad and created a .xinitrc file with contents: exec xmonad
running startx gets me into xmonad, but with resolution 1024*768 instead of 1336*768

After some googling I figured I should change some stuff in /etc/X11/xorg.conf. But this file doesn't seem to exist so after some more googling it seem as it should be created with Xorg -configure. But this command gives a long output (can't scroll in it or pipe to less :( from tty1) ending with:
Number of created screens does not match number of detected devices.
Configuration failed.
Do you have any tips of a next step to solve this?
I previously ran ubuntu and had full resolution so it isn't a hardware problem.

/Petter
Last edited by petter.s on 2012-01-19 08:44, edited 1 time in total.

User avatar
mslinux
Posts: 942
Joined: 2010-12-24 05:14

Re: Trouble with Xorg on Thinkpad e520

#2 Post by mslinux »

You can use xrandr or create xorg.conf file manually to specify desired resolution.
There are many tutorials on the net on how to do it.
I previously ran ubuntu and had full resolution so it isn't a hardware problem.
It's possible. Combination between kernel version, xorg version, more recent driver, etc.
You may want to add information about your current running kernel, your graphic card and module/driver is used ( lspci -knn )
MsLinux-

forums.debian.net - where facepalm is the default answer :D

© 2012
║▌║│█║▌│█│║▌║█║▌│█│║▌║│

petter.s
Posts: 7
Joined: 2012-01-17 13:59

Re: Trouble with Xorg on Thinkpad e520

#3 Post by petter.s »

Hi,
I have tried xrandr, this is it's output:
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 800 x 600, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
1024x768 61.0*
960x600 0.0
800x600 61.0
This is odd because my maximum resolution is 1366 x 768

uname -r gives:
2.6.32-5-amd64
lspci -knn gives:
00:00.0 Host bridge [0600]: Intel Corporation Sandy Bridge DRAM Controller [8086:0104] (rev 09)
Subsystem: Lenovo Device [17aa:21e2]
00:02.0 VGA compatible controller [0300]: Intel Corporation Sandy Bridge Integrated Graphics Controller [8086:0116] (rev 09)
Subsystem: Lenovo Device [17aa:21e2]
00:16.0 Communication controller [0780]: Intel Corporation Cougar Point HECI Controller #1 [8086:1c3a] (rev 04)
Subsystem: Lenovo Device [17aa:21e2]
00:1a.0 USB Controller [0c03]: Intel Corporation Cougar Point USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
Subsystem: Lenovo Device [17aa:21e2]
Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation Cougar Point High Definition Audio Controller [8086:1c20] (rev 04)
Subsystem: Lenovo Device [17aa:21e2]
Kernel driver in use: HDA Intel
00:1c.0 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 1 [8086:1c10] (rev b4)
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 2 [8086:1c12] (rev b4)
Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 3 [8086:1c14] (rev b4)
Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 4 [8086:1c16] (rev b4)
Kernel driver in use: pcieport
00:1c.7 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 8 [8086:1c1e] (rev b4)
Kernel driver in use: pcieport
00:1d.0 USB Controller [0c03]: Intel Corporation Cougar Point USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
Subsystem: Lenovo Device [17aa:21e2]
Kernel driver in use: ehci_hcd
00:1f.0 ISA bridge [0601]: Intel Corporation Cougar Point LPC Controller [8086:1c49] (rev 04)
Subsystem: Lenovo Device [17aa:21e2]
00:1f.2 SATA controller [0106]: Intel Corporation Cougar Point 6 port SATA AHCI Controller [8086:1c03] (rev 04)
Subsystem: Lenovo Device [17aa:21e2]
Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation Cougar Point SMBus Controller [8086:1c22] (rev 04)
Subsystem: Lenovo Device [17aa:21e2]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 06)
Subsystem: Lenovo Device [17aa:21e2]
Kernel driver in use: r8169
03:00.0 System peripheral [0880]: Ricoh Co Ltd Device [1180:e823] (rev 04)
Subsystem: Lenovo Device [17aa:21e2]
08:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 1000 [8086:0084]
Subsystem: Intel Corporation Centrino Wireless-N 1000 BGN [8086:1315]
Kernel driver in use: iwlagn
I am gonna try to write my own xorg.conf as you said now, thanks for the tip!

User avatar
mslinux
Posts: 942
Joined: 2010-12-24 05:14

Re: Trouble with Xorg on Thinkpad e520

#4 Post by mslinux »

Maybe you will get a better luck with kernel 2.6.39 from backports and backported X too.

Since you're familiar with Ubuntu the same solution may work with Debian. Read the last post in this thread :
http://forums.debian.net/viewtopic.php?f=6&t=65043
MsLinux-

forums.debian.net - where facepalm is the default answer :D

© 2012
║▌║│█║▌│█│║▌║█║▌│█│║▌║│

petter.s
Posts: 7
Joined: 2012-01-17 13:59

Re: Trouble with Xorg on Thinkpad e520

#5 Post by petter.s »

xrandr --newmode "1336x768_60.00" 83.00 1336 1400 1536 1736 768 771 781 798 -hsync +vsync
Gave result
xrandr: Failed to get size of gamma for output default
So I tried backporting the kernel according to this guide:
https://ticketing.nforce.com/index.php? ... -6-squeeze
and after a restart I had the correct resolution!!!!

Thank you very much mslinux, you have really helped my a lot. It was stressful not having a working computer.

All graphics were a bit slow so I followed your advice and backported X too (I think, I ran apt-get install xorg) and after that everything was smooth!

Just to be able to solve these things myself in the future, how did you know I should backport the kernel? Did you find any bugreport? Intuition?

Thanks again,
Petter

User avatar
mslinux
Posts: 942
Joined: 2010-12-24 05:14

Re: Trouble with Xorg on Thinkpad e520

#6 Post by mslinux »

Glad I could help. Anyway, you helped yourself by putting a clear and verbose information of the situation you were facing.
how did you know I should backport the kernel?
Your lspci output :
00:02.0 VGA compatible controller [0300]: Intel Corporation Sandy Bridge Integrated Graphics Controller [8086:0116] (rev 09)
Installing Debian in various hardwares will give us an experience on what to do when dealing with certain hardware confugurations.
MsLinux-

forums.debian.net - where facepalm is the default answer :D

© 2012
║▌║│█║▌│█│║▌║█║▌│█│║▌║│

Post Reply