Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Problems in starting Xorg
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Tue Feb 05, 2013 6:02 am    Post subject: Reply with quote

World compiled. And once more, Xorg doesn't starts...

Files:
lspci http://pastebin.com/jdVj1t0F
gentoo kernel .config http://pastebin.com/PN2czYAB
new /var/log/Xorg.0.log http://pastebin.com/ybiw5f0r
new emerge --info http://pastebin.com/bHn9Tamv

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5623

PostPosted: Tue Feb 05, 2013 3:06 pm    Post subject: Reply with quote

Quote:
[ 16287.490] (II) [KMS] drm report modesetting isn't supported.

Should be clear enough.

CONFIG_FB_RADEON should be unset, CONFIG_FRAMEBUFFER_CONSOLE=y.
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Tue Feb 05, 2013 4:38 pm    Post subject: Reply with quote

Hi VoidMage, I tried your suggestion right now, but doesn't worked here.
/var/log/X.0.log http://pastebin.com/mvNVnyaK

I was thinking... is there a way to see to check .config of a "generic" kernel form another distro, like Sabayon, and compare with mine? Maybe some obscure CONFIG_ not checked in my compiled kernels isn't selected.

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5623

PostPosted: Tue Feb 05, 2013 8:49 pm    Post subject: Reply with quote

Post 'lsmod'.
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Tue Feb 05, 2013 9:27 pm    Post subject: Reply with quote

VoidMage wrote:
Post 'lsmod'.


Module-------------------------------------------Used----by
ext2----------------------------------------------- 0
atl1c---------------------------------------------- -0
ath9k-----------------------------------------------0
ath9k_common------------------------------------1--------ath9k
ath9k_hw---------------------------------------- --2 -------ath9k_common, ath9k
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32108
Location: 56N 3W

PostPosted: Tue Feb 05, 2013 10:15 pm    Post subject: Reply with quote

rudregues,

Code:
[ 16287.490] (II) [KMS] drm report modesetting isn't supported.


Thats because you have
Code:
CONFIG_FB_RADEON=m
and the kernel framebuffer drive prevents the kernel part of the Xorg driver from working.
You must not configure any Frame buffer hardware drivers in the kernel. The Radeon driver will give you a framebuffer anyway.

Fix your kernel and you should be good.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Tue Feb 05, 2013 10:35 pm    Post subject: Reply with quote

Neddy, my menuconfig is (I have selected the pertinent sections)


Graphics support --->
| | <M> /dev/agpgart (AGP Support) --->
│ │ [*] VGA Arbitration
│ │ (16) Maximum number of GPUs
│ │ [ ] Laptop Hybrid Graphics - GPU switching support
│ │ <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
│ │ < > Intel GMA500 Stub Driver
│ │ <M> Lowlevel video output switch controls
│ │ {*} Support for frame buffer devices --->
│ │ [ ] Exynos Video driver support --->
│ │ [*] Backlight & LCD device support --->
│ │ Console display driver support --->
│ │ [*] Bootup logo --->


--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
│ │ [ ] Allow to specify an EDID data set instead of probing for it
│ │ < > 3dfx Banshee/Voodoo3+
│ │ < > ATI Rage 128
│ │ <M> ATI Radeon
│ │ [*] Enable modesetting on radeon by default - NEW DRIVER


--- Support for frame buffer devices
│ │ [*] Enable firmware EDID
│ │ [ ] Framebuffer foreign endianness support --->
│ │ [*] Enable Video Mode Handling Helpers
│ │ [ ] Enable Tile Blitting Support
│ │ *** Frame buffer hardware drivers ***
│ │ < > Cirrus Logic support
│ │ < > Permedia2 support
│ │ < > CyberPro 2000/2010/5000 support
│ │ < > Arc Monochrome LCD board support
│ │ [ ] Asiliant (Chips) 69000 display support (NEW)
│ │ [ ] IMS Twin Turbo display support (NEW)
│ │ < > VGA 16-color graphics support
│ │ < > Userspace VESA VGA graphics support
│ │ [ ] VESA VGA graphics support (NEW)
│ │ [ ] EFI-based Framebuffer Support (NEW)
│ │ < > ATI Radeon display support
│ │ < > ATI Rage128 display support
│ │ < > ATI Mach64 display support

Console display driver support --->
│ │ [*] VGA text console
│ │ [*] Enable Scrollback Buffer in System RAM
│ │ (64) Scrollback Buffer Size (in KB)
│ │ <M> Framebuffer Console support
│ │ -*- Map the console to the primary display device
│ │ [ ] Framebuffer Console Rotation
│ │ [ ] Select compiled-in fonts

Which I should select with *(built-in), M(module) or remove(unmarked)?
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Feb 05, 2013 11:31 pm    Post subject: Reply with quote

rudregues,

{*} Support for frame buffer devices ---> set to m
[ ] Enable Tile Blitting Support turn on *

As far as I can see the rest looks fine :D
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 12:31 am    Post subject: Reply with quote

BillWho wrote:
rudregues,

{*} Support for frame buffer devices ---> set to m
[ ] Enable Tile Blitting Support turn on *

As far as I can see the rest looks fine :D

Got the same error Bill. I'll try to remove everything related with framebuffers in .config

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Feb 06, 2013 12:49 am    Post subject: Reply with quote

This is what's set for my Radeon HD 3200
Code:
xen linux # awk '/FB/{if ($1 != "#") print}' /usr/src/linux/.config
CONFIG_FB=m
CONFIG_FB_CFB_FILLRECT=m
CONFIG_FB_CFB_COPYAREA=m
CONFIG_FB_CFB_IMAGEBLIT=m
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y

And what lsmod returns:
Code:
xen linux # lsmod|grep radeon
radeon                759619  2
cfbfillrect             3002  1 radeon
cfbimgblt               1887  1 radeon
cfbcopyarea             2958  1 radeon
i2c_algo_bit            4385  1 radeon
backlight               3600  1 radeon
drm_kms_helper         23067  1 radeon
ttm                    51222  1 radeon
drm                   195240  4 ttm,drm_kms_helper,radeon
fb                     45503  6 fbcon,drm_kms_helper,radeon,softcursor,tileblit,bitblit
hwmon                   1217  4 it87,k10temp,radeon,thermal_sys

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5623

PostPosted: Wed Feb 06, 2013 3:21 pm    Post subject: Reply with quote

rudregues wrote:
Hi VoidMage, I tried your suggestion right now...

rudregues wrote:
│ │ <M> Framebuffer Console support

That looks as if you didn't.
Also, if CONFIG_DRM_RADEON=m, you need to load the module.
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 3:28 pm    Post subject: Reply with quote

Nothing again Bill. I think it's better try to install fglrx.

First I'll emerge -C radeon-ucode
Second change VIDEO_CARDS="fglrx"
Third emerge -uavDN @world
Then recompile my kernel again accordingly this wiki http://en.gentoo-wiki.com/wiki/Fglrx#Kernel_Configuration

If I have any problem, will post here, otherwise will edit the thread to solved.

EDIT: recompile the kernel without DRI or KMS must be the first thing to do

[ ]'s
_________________
Emerging en gentoo


Last edited by rudregues on Wed Feb 06, 2013 3:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 3:31 pm    Post subject: Reply with quote

VoidMage wrote:
rudregues wrote:
Hi VoidMage, I tried your suggestion right now...

rudregues wrote:
│ │ <M> Framebuffer Console support

That looks as if you didn't.
Also, if CONFIG_DRM_RADEON=m, you need to load the module.

Void, what module? At least the radeon module was loaded. Just see my Xorg.0.log http://pastebin.com/ybiw5f0r although "modesseting" wasn't loaded, according this file.

obs.: if I try "modprobe radeon" or "modprobe radeon modeset=1" it gets to a ugly blank screen. And it's strange, but the keyboard works in there, I know because I can su and reboot then
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 4:05 pm    Post subject: Reply with quote

rudregues wrote:
Nothing again Bill. I think it's better try to install fglrx.

First I'll emerge -C radeon-ucode
Second change VIDEO_CARDS="fglrx"
Third emerge -uavDN @world
Then recompile my kernel again accordingly this wiki http://en.gentoo-wiki.com/wiki/Fglrx#Kernel_Configuration

If I have any problem, will post here, otherwise will edit the thread to solved.

EDIT: recompile the kernel without DRI or KMS must be the first thing to do

[ ]'s

I will do it later, because I noted I've the same firmware problem described here http://forums.gentoo.org/viewtopic-t-948178-start-0.html
It seems that I don't inluded the firmware correctly.
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 4:25 pm    Post subject: Reply with quote

DONAHUE wrote:
select
Quote:
() External firmware blobs to build into the kernel binary

and hit enter
in the dialog box that appears type the name of the firmware used by your card.
hit ok
Quote:
(firmware) Firmware blobs root directory (NEW)

will appear. Select it and enter. Edit to
Quote:
/lib/firmware
.


Well, I hit <space> <y> the "() External firmware blobs to build into the kernel binary" option remains unselected. Unique dependencie is FW_LOADER which is selected [=y]

"Include in-kernel firmware blobs in kernel binary" is selected with [*]

What's wrong?

EDIT: the problem was I'm hitting other keys when just <enter> does the job

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 4:54 pm    Post subject: Reply with quote

Now I think it's correct.

(/sbin/hotplug) path to uevent helper
│ │ [*] Maintain a devtmpfs filesystem to mount at /dev
│ │ [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs
│ │ [*] Select only drivers that don't need compile-time external firmware
│ │ [*] Prevent firmware from being built
│ │ -*- Userspace firmware loading support
│ │ [*] Include in-kernel firmware blobs in kernel binary
│ │ (radeon/PALM_me.bin radeon/PALM_pfp.bin) External firmware blobs to build into the kernel binary
│ │ (/lib/firmware/ ) Firmware blobs root directory
│ │ [ ] Driver Core verbose debug messages
│ │ [*] Managed device resources verbose debug messages
│ │

I'll recompile the kernel now.

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5623

PostPosted: Wed Feb 06, 2013 5:40 pm    Post subject: Reply with quote

I've relied on firmware loading and it has worked for me.
rudregues wrote:
At least the radeon module was loaded.

The output of lsmod says otherwise.

Of course now, that you've made it builtin, lsmod will again show nothing.
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 6:40 pm    Post subject: Reply with quote

VoidMage wrote:
I've relied on firmware loading and it has worked for me.
rudregues wrote:
At least the radeon module was loaded.

The output of lsmod says otherwise.

Of course now, that you've made it builtin, lsmod will again show nothing.

I recompiled my kernel up to 18x just to make Xorg work. Always I boot in text mode lsmod doesn't list radeon driver. Built-in or like module. Additionally, if I modprobe radeon to load the module, I get blank screen of death. Are you telling me radeon driver should load automatically and be listed by lsmod in text-mode, since being built like a module?

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5623

PostPosted: Wed Feb 06, 2013 7:02 pm    Post subject: Reply with quote

rudregues wrote:
Additionally, if I modprobe radeon to load the module, I get blank screen of death.

You're most likely doing something wrong, though it's hard to tell exactly what.

To repeat myself: CONFIG_FB_RADEON needs to be unset, CONFIG_FRAMEBUFFER_CONSOLE=y, if CONFIG_DRM_RADEON=m, you need to load the module ( :roll: /etc/conf.d/modules), if it's builtin, the correct firmware needs to be too.

If your hardware is a muxless laptop, there's a couple more catches.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Feb 06, 2013 8:17 pm    Post subject: Reply with quote

rudregues,

Save your .config file somewhere then do a make clean && make mrproper and try my .config.

http://bpaste.net/show/75542/

It's set up for amd64 no initramfs so to compile it make sure /boot is mounted if you have a mount partition and

Code:
make && make modules_install && make install && emerge x11-drivers/xf86-video-ati


Make sure VIDEO_CARDS="radeon"

This is the .config I'm using on this machine right now. If it does work then you'll just need to make some device driver changes.

At the most all that's expected is that it boots and loads X - hopefully :roll:

UPDATE: Another thing is set the kernel grub line root=/dev/sda? rootfstype=ext? - replace the '?' with the correct values so will look like
linux /vmlinuz-3.6.11-gentoo root=/dev/sda9 rootfstype=ext3

If you have a initrd line comment it or remove it...
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)


Last edited by BillWho on Wed Feb 06, 2013 8:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 8:26 pm    Post subject: Reply with quote

Void, I tried to put radeon modules in /etc/conf.d/modules too. My notebook is a an APU from AMD, Fusion tecnology with just one GPU, not hybrid.

Well, at the begin, I thought the free radeon would be easy and simpler than the proprietary one. But, I tried right now to compile kernel and configure for fglrx. It worked at the first attempt. Maybe in the future, when I become a "gentoo guru" I try radeon again :D

If anyone want know what .config I've used to compile my kernel here is:

Firmiware configs:
Quote:
(/sbin/hotplug) path to uevent helper
│ │ [*] Maintain a devtmpfs filesystem to mount at /dev
│ │ [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs
│ │ [*] Select only drivers that don't need compile-time external firmware
│ │ [*] Prevent firmware from being built
│ │ -*- Userspace firmware loading support
│ │ [ ] Include in-kernel firmware blobs in kernel binary
│ │ () External firmware blobs to build into the kernel binary
│ │ [ ] Driver Core verbose debug messages
│ │ [*] Managed device resources verbose debug message



Graphics, KMS, DRI and framebuffer configs:
Quote:
Graphics support --->
| | <M> /dev/agpgart (AGP Support) --->
│ │ [*] VGA Arbitration
│ │ (16) Maximum number of GPUs
│ │ [ ] Laptop Hybrid Graphics - GPU switching support
│ │ < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
│ │ < > Intel GMA500 Stub Driver
│ │ <M> Lowlevel video output switch controls
│ │ {*} Support for frame buffer devices --->
│ │ [ ] Exynos Video driver support --->
│ │ [*] Backlight & LCD device support --->
│ │ Console display driver support --->
│ │ [*] Bootup logo --->


--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
│ │ [ ] Allow to specify an EDID data set instead of probing for it
│ │ < > 3dfx Banshee/Voodoo3+
│ │ < > ATI Rage 128
│ │ < > ATI Radeon
│ │ [ ] Enable modesetting on radeon by default - NEW DRIVER


--- Support for frame buffer devices
│ │ [*] Enable firmware EDID
│ │ [ ] Framebuffer foreign endianness support --->
│ │ [*] Enable Video Mode Handling Helpers
│ │ [ ] Enable Tile Blitting Support
│ │ *** Frame buffer hardware drivers ***
│ │ < > Cirrus Logic support
│ │ < > Permedia2 support
│ │ < > CyberPro 2000/2010/5000 support
│ │ < > Arc Monochrome LCD board support
│ │ [ ] Asiliant (Chips) 69000 display support (NEW)
│ │ [ ] IMS Twin Turbo display support (NEW)
│ │ < > VGA 16-color graphics support
│ │ < > Userspace VESA VGA graphics support
│ │ [*] VESA VGA graphics support (NEW)
│ │ [*] EFI-based Framebuffer Support (NEW)
│ │ < > ATI Radeon display support
│ │ < > ATI Rage128 display support
│ │ < > ATI Mach64 display support

Console display driver support --->
│ │ [*] VGA text console
│ │ [*] Enable Scrollback Buffer in System RAM
│ │ (64) Scrollback Buffer Size (in KB)
│ │ <M> Framebuffer Console support
│ │ -*- Map the console to the primary display device
│ │ [ ] Framebuffer Console Rotation
│ │ [ ] Select compiled-in fonts


Then recompiled my kernel and followed those steps:
emerge -C radeon-ucode
change VIDEO_CARDS="fglrx"
emerge -uavDN @world
configured X with this section http://en.gentoo-wiki.com/wiki/Fglrx#Configure_X

Now I can setup my Fluxbox, thank you very much for the help guys. Never imagined the trouble kernel configuration can be.

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Feb 06, 2013 8:32 pm    Post subject: Reply with quote

rudregues,

Never mind then - glad to hear you finally got it going :D
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 198

PostPosted: Wed Feb 06, 2013 8:46 pm    Post subject: Reply with quote

BillWho wrote:
rudregues,

Never mind then - glad to hear you finally got it going :D

Thanks Bill, if I try to install X with radeon I'll use your config in pastebin, or at least compare with mine. ;)

[ ]'s
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
USTruck
Guru
Guru


Joined: 21 Aug 2005
Posts: 422
Location: La Louviere (Belgique)

PostPosted: Fri Feb 08, 2013 7:57 pm    Post subject: Reply with quote

Hello,

First look at http://wiki.gentoo.org/wiki/Radeon
By lspci ; look at your ATI card and find it on wiki

video_cards="radeon"

emerge radeon_ucode

configure kernel
graphics->direct rendering
enable ATI RADEON
enable default modesettings

Under framebuffer ; REMOVE all set vesa, uvesa, vga AND all ATI driver (normaly all blank)
first time , Do not respect the wiki, do not enter any reference about firmware
Compile and reboot
use dmesg to find firmware loaded note it
complete your kernel config and compile
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
Goto page Previous  1, 2
Page 2 of 2

 
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