Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Thinkpad T60: Radeon+KMS problem, black screen!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kazbox
n00b
n00b


Joined: 22 Jan 2016
Posts: 3

PostPosted: Fri Jan 22, 2016 9:23 am    Post subject: [SOLVED] Thinkpad T60: Radeon+KMS problem, black screen! Reply with quote

Edit: Solved. Solution a few posts below.

Hi everyone, new Gentoo user here.

I finally got the hang of setting it up in the past week, and have fully finished how my base is configured. However, I couldn't get X to work, which leads to this problem.
I used a generic kernel configuration which does not have KMS enabled, therefore I compiled a kernel with framebuffer devices disabled and DRI for Radeon enabled, like the wiki told me to.

Got the newly compiled kernel to boot... but nothing showed. Everything else worked fine, login, even X.log shows X could detect screens and start now that KMS was enabled, but alas no video.

I tried disabling the gfx payload, but even in textmode the screen blanks after eudev starts up. Nomodeset works fine, however, even though it disables KMS.

Did I do something wrong in my kernel configs? This is a Thinkpad T60 with an ATI Radeon X13* GPU, by the way.
_________________
M e m e s


Last edited by kazbox on Sat Jan 23, 2016 10:02 am; edited 2 times in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Fri Jan 22, 2016 9:51 am    Post subject: Reply with quote

...sorry, the crystal ball is still out of order...

What was your kernel again ?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Fri Jan 22, 2016 10:30 am    Post subject: Reply with quote

If you run plain X with no application using it you will get black screen ... but my crystal ball seems to malfunction, too ...
Back to top
View user's profile Send private message
kazbox
n00b
n00b


Joined: 22 Jan 2016
Posts: 3

PostPosted: Fri Jan 22, 2016 6:39 pm    Post subject: Reply with quote

Erm, Linux 4.1.12. Maybe I'll try updating to the latest kernel to see if KMS works there.
Buffoon: The thing is though that it's not just with X, it's with the whole kernel framebuffer, nothing will output at all with the DRM/KMS framebuffer.

But for now, here's some lspci -v output:
Code:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV515/M52 [Mobility Radeon X1300] (prog-if 00 [VGA controller])
   Subsystem: Lenovo RV515/M52 [Mobility Radeon X1300]
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Memory at d8000000 (32-bit, prefetchable) [size=128M]
   I/O ports at 2000 [size=256]
   Memory at ee100000 (32-bit, non-prefetchable) [size=64K]
   [virtual] Expansion ROM at ee120000 [disabled] [size=128K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Express Legacy Endpoint, MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit+
   Kernel driver in use: radeon


And the kernel configuration:
http://pastebin.com/6WzjdgWU

Snippet from the framebuffer setup:
Code:
CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_TTM=y

CONFIG_DRM_RADEON=y

CONFIG_FB=y
CONFIG_FIRMWARE_EDID=y
CONFIG_FB_CMDLINE=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=m
CONFIG_FB_SYS_COPYAREA=m
CONFIG_FB_SYS_IMAGEBLIT=m
CONFIG_FB_SYS_FOPS=m
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y

CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_BACKLIGHT_CLASS_DEVICE=y
CONFIG_HDMI=y

CONFIG_VGA_CONSOLE=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_CLUT224=y


dmesg gives worthless output as it's all scsi commands, but here it is anyway:
http://pastebin.com/fRnvhzTV
_________________
M e m e s
Back to top
View user's profile Send private message
kazbox
n00b
n00b


Joined: 22 Jan 2016
Posts: 3

PostPosted: Sat Jan 23, 2016 10:00 am    Post subject: Reply with quote

Edit: Turns out that everything was working after all, it's that KMS was outputting to VGA instead of the laptop.

Did a little grub/kernel reconfiguration to output to the internal screen instead of the VGA port and now it's solved.
_________________
M e m e s
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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