Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg and gnome
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
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Mon Oct 08, 2012 5:59 pm    Post subject: xorg and gnome Reply with quote

I updated my kernel to gentoo-sources-3.6.0, enabling radeon stuff (my graphics card happens to be one), and installed xorg. No Gnome still. With xorg I get a nice framebuffer, but the only problem is that the machine takes way too long to boot (around 1.5 min before the login prompt). Also, it says "udev failed to start".
gdm HOWTO says something like "you should have X properly running". Now, what *is* "X properly running?" For when after logging in I issue startx, I get "Fatal server error: no screens found". Emerging gnome halts with "unmet requirements" of net-libs/webkit-gtk:3, with some USE-flags "geoloc introspection gstreamer". How to make sense of this? I would be grateful for your comments on any of these issues!
Back to top
View user's profile Send private message
Circuitsoft
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2004
Posts: 112

PostPosted: Mon Oct 08, 2012 8:44 pm    Post subject: Reply with quote

Do you have VIDEO_CARDS="radeon vesa" in your make.conf? If not, you're not building the user-space drivers for your radeon. Add that line, rebuild xorg-drivers, and report back.
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4249

PostPosted: Mon Oct 08, 2012 9:08 pm    Post subject: Re: xorg and gnome Reply with quote

Sigma Kappa wrote:
but the only problem is that the machine takes way too long to boot (around 1.5 min before the login prompt). Also, it says "udev failed to start".

I would stop here if i were you, and fix that first, not only to not get bored by that poor timing, but because gnome without udev, you are going nowhere.

Sigma Kappa wrote:
what *is* "X properly running?"

The invert of
Sigma Kappa wrote:
I issue startx, I get "Fatal server error: no screens found".
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Tue Oct 09, 2012 5:36 pm    Post subject: Reply with quote

Thank you for your replies.
I added "VIDEO_CARDS=radeon vesa"" to /etc/portage/make.conf, emerged xorg-drivers, and emerged udev. All the emerge ran smoothly. Next, dmesg said "Failed to load firmware R600_rlc.bin", so I found this R600_rlc.bin file somewhere on the web and included it (after chmod +x) into /usr/src/linux/firmware/radeon/.

udev still fails to start, boot timing is still poor, and demsg still says "Failed to load firmware radeon/R600_rlc.bin". I tried to emerge radeon-ucode, but it blocks linux-firmware (I installed the latter when following the X configuration guide).

What do you say_
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5517

PostPosted: Tue Oct 09, 2012 6:04 pm    Post subject: Reply with quote

'make modules_install' after building the kernel ?

Also, unless your kernel is significantly old, that firmware should already be there.
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Tue Oct 09, 2012 6:41 pm    Post subject: Reply with quote

Yes, I always do "make && make modules_install" when compiling the kernel. My current kernel is gentoo-sources-3.6.0. When booting I see the message "/usr/lib/systemd/systemd-udev: File does not exist", although the file is there. Also, dmesg does output udev's activity, so udev is starting after all. The most annoying thing is this 2-minutes' booting time. I changed VIDEO_CARDS="radeon radonsi" and did emerge --ask --changed-use --deep world, but for some reason this operation re-emerged gentoo-sources-3.4.9 ([ebuild R] or something). I am still trying to make sense of this all.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6504
Location: Goose Creek SC

PostPosted: Tue Oct 09, 2012 7:30 pm    Post subject: Reply with quote

Code:
emerge wgetpaste pciutils
lspci -k | wgetpaste
lspci -n | wgetpaste
emerge --info | wgetpaste
wgetpaste /proc/cpuinfo
wgetpaste /usr/src/linux/.config
post url's returned
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Wed Oct 10, 2012 1:26 pm    Post subject: Reply with quote

The urls, in order:
[url]bpaste.net/show/50325[\url],
[url]bpaste.net/show/50326[\url],
[url]bpaste.net/show/50327[\url],
[url]bpaste.net/show/50329[\url],
[url]bpaste.net/show/50330[\url].

BTW this wgetpaste tool is very helpful!
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Wed Oct 10, 2012 3:36 pm    Post subject: Reply with quote

The X Window system is working: I installed xterm and twm, and when I issue startx, I have two white xterm screens. The only thing is that the two terminals do not occupy the entire screen, but rather its 2/3. Thus, I can imagine I can emerge gnome, but the 2 minutes' boot time is still an issue.
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 175
Location: Estonia, Tallinn

PostPosted: Wed Oct 10, 2012 3:42 pm    Post subject: Reply with quote

I'd be more interested in
Code:
dmesg |wgetpaste

Awfully smells like separate /usr partition without initramfs mounting it early.
_________________
GNOME team lead; GStreamer
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Wed Oct 10, 2012 3:53 pm    Post subject: Reply with quote

dmesg | wgetpaste == [URL]bpaste.net/show/50363[\URL].
Yes, I do have a separate partition for /usr, and I do not have any initramfs. By the way, gstreamer is the thing that has something to do with my not being able to emerge gnome: webkit-gtk, geoloc, gstreamer, introspection, whatever this means. Sorry, I gotta learn a lot about Gentoo.
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Wed Oct 10, 2012 6:33 pm    Post subject: Reply with quote

I seem to have done everything according to wiki.gentoo.org/wiki/Early_Userspace_Mounting, but the 2-minutes' boot time issue is still there. Moreover, initramfs fails to start, so I\m forced to edit /boot/grub/grub.conf via the second boot option after all.
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4249

PostPosted: Wed Oct 10, 2012 6:56 pm    Post subject: Reply with quote

You can certainly fix all your issues with just that :
echo ">sys-fs/udev-172" >> /etc/portage/package.mask

1/ the "we don't like /usr on another partition anymore"
2/ the "firmware bug froze kernel while waiting timeout for minutes" http://marc.info/?l=linux-kernel&m=134919561607889&w=2
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Wed Oct 10, 2012 7:49 pm    Post subject: Reply with quote

After echoing to /etc/portage/package.mask, udev seems to start normally (no complaints during boots). But the poor timing issue remains. So, initramfs is my last resort? Hm, so /usr on a different partition was a bad idea?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6504
Location: Goose Creek SC

PostPosted: Wed Oct 10, 2012 8:40 pm    Post subject: Reply with quote

if you would like to try a revised (possibly imprved) kernel configuration; I have revised your configuration against pappy's kernel seed x86_64 3.4.9 and my config and lspci -k and lspci -n checked at http://kmuto.jp/debian/hcl/ . If you just want a look: http://paste.pound-python.org/raw/26629/ . If you want to try it:
Code:
emerge linux-firmware
cd /usr/src/linux
mv .config oldconfig
make mrproper
make clean
curl -o /usr/src/linux/.config http://paste.pound-python.org/raw/26629/
ls -al #is there a nice new .config file?? if so proceed
make menuconfig
look around; change something, change it back, exit saving the configuration. ensure the /boot partition is mounted.
either
Code:
make && make modules_install && make_install

or
Code:
emerge genkernel
genkernel all
after choice runs, continue with
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot

_________________
Defund the FCC.
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 175
Location: Estonia, Tallinn

PostPosted: Thu Oct 11, 2012 12:01 pm    Post subject: Reply with quote

Sigma Kappa wrote:
dmesg | wgetpaste == [URL]bpaste.net/show/50363[\URL].
Yes, I do have a separate partition for /usr, and I do not have any initramfs.

So because your kernel is trying to load the radeon firmware before your rootfs is mounted (probably because radeon drm is builtin, not module), it can't find the firmware, tries to find for a while and fails.
You need to have an initramfs that includes the firmware image, or build the firmware image into the kernel image itself (CONFIG_FIRMWARE_IN_KERNEL=y). Or have the radeon support as a kernel module as well, but that means pretty KMS console graphics later on.

To use newer udev, you need /usr mounted early via an initramfs. Many topics and instructions on this here in the forums. Personally I've used dracut for generating that. Others use genkernel made one. Yet others just spin their own tiny thing. Some just don't have a separate /usr if they don't really need it (usually don't...). I don't actually know offhand how badly it doesn't work with separate /usr without early-mount, but even older ones while work, they can subtly fail if some udev rule triggered early requires something from /usr, which there are some things. Just for a simple setup with easy mounting of /usr and such, you don't really hit those that early.

Not sure about the backtraces in your dmesg. May just very well be due to no firmware loaded to handle those things. If it still boots long, a fresh dmesg after fixing firmware loading would be useful.

Sigma Kappa wrote:
By the way, gstreamer is the thing that has something to do with my not being able to emerge gnome: webkit-gtk, geoloc, gstreamer, introspection, whatever this means. Sorry, I gotta learn a lot about Gentoo.

Probably some sort of USE flag requirement somewhere. E.g, webkit-gtk[geoloc] required USE=introspection in geoloc package iirc. The portage output should tell what's up. Not sure of the gstreamer one.
_________________
GNOME team lead; GStreamer
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Thu Oct 11, 2012 7:11 pm    Post subject: Reply with quote

[URL]bpaste.net/show/50606[\URL],
[URL]bpaste.net/show/50607[\URL],
[URL]bpaste.net/show/50608[\URL],
[URL]bpaste.net/show/50609[\URL],
[URL]bpaste.net/show/50613[\URL].

Thanks for the configs, but I am running 3.6.0 now -- that is where the X Window is working, and at the time I sent the previous links /usr/src/linux was pointing to 3.4.9. Now fixed. About the dracut: I emerged and issued the command "dracut", added the corresponding line "initrd /boot/initramfs-3.6.0-gentoo.img" to grub.conf. The issue with the looong boot is still there. Seems like no other way than installing afresh with no separate /usr?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6504
Location: Goose Creek SC

PostPosted: Thu Oct 11, 2012 9:58 pm    Post subject: Reply with quote

I'll make life easier for the next guys:
http://bpaste.net/show/50606
http://bpaste.net/show/50607
http://bpaste.net/show/50608
http://bpaste.net/show/50609
http://bpaste.net/show/50613

the graphics support section of menuconfig invokes kms but firmware is not built in http://www.gentoo.org/doc/en/xorg-config.xml
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Sat Oct 13, 2012 8:06 am    Post subject: Reply with quote

As one configures the kernel (menuconfig), why it is that some options are not active? I mean they can\t bve set neither to "M" nor to "*". I did "Device Drivers -> Generic Driver Options -> [*] Include in-kernel firmware blobs in kernel binary", but "External firmware blobs to build into the kernel binary" is not active. I tried to change my profile with "eselect profile set", but of no avail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6504
Location: Goose Creek SC

PostPosted: Sat Oct 13, 2012 3:14 pm    Post subject: Reply with quote

"() External firmware blobs to build into the kernel binary" () is different from <> and [] and signifies a different behavior.
selecting "External firmware blobs to build into the kernel binary" produces a dialog box. In the dialog box you would type the name(s) of firmware you wish to build in.
help for "External firmware blobs to build into the kernel binary" says
Quote:
External firmware blobs to build into the kernel binary
CONFIG_EXTRA_FIRMWARE:

This option allows firmware to be built into the kernel for the case
where the user either cannot or doesn't want to provide it from
userspace at runtime (for example, when the firmware in question is
required for accessing the boot device, and the user doesn't want to
use an initrd).

This option is a string and takes the (space-separated) names of the
firmware files -- the same names that appear in MODULE_FIRMWARE()
and request_firmware() in the source. These files should exist under
the directory specified by the EXTRA_FIRMWARE_DIR option, which is
by default the firmware subdirectory of the kernel source tree.

For example, you might set CONFIG_EXTRA_FIRMWARE="usb8388.bin", copy
the usb8388.bin file into the firmware directory, and build the kernel.
Then any request_firmware("usb8388.bin") will be satisfied internally
without needing to call out to userspace.

WARNING: If you include additional firmware files into your binary
kernel image that are not available under the terms of the GPL,
then it may be a violation of the GPL to distribute the resulting
image since it combines both GPL and non-GPL work. You should
consult a lawyer of your own before distributing such an image.

Symbol: EXTRA_FIRMWARE [=]
Type : string
Prompt: External firmware blobs to build into the kernel binary
Defined at drivers/base/Kconfig:110
Depends on: FW_LOADER [=y]
Location:
-> Device Drivers
-> Generic Driver Options
-> Userspace firmware loading support (FW_LOADER [=y])
Quote:
Depends on: FW_LOADER [=y]
you should see it.
Quote:
Depends on: FW_LOADER [=n]
you should not. If you type / in menuconfig you get a dialog box. If you enter fw_loader in the dialog you will see the help for FW_LOADER which has a very long depends.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


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

PostPosted: Sun Oct 14, 2012 12:51 am    Post subject: Reply with quote

http://www.gentoo.org/doc/en/xorg-config.xml describes the correct kernel configuration (including firmware) for radeon.

If you build radeon as module, you must ensure that it loads before X starts.
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Sun Oct 14, 2012 6:06 am    Post subject: Reply with quote

OK, one can actually edit /boot/.config file to add "CONFIG_EXTRA_FIRMWARE=radeon/R600_rlc.bin /radeon/R700_rlc.bin". Now the kernel freeze issue is fixed -- 8 seconds to the login prompt! Thank you guys. Now, I have issues with startx: fails to start. Also, when trying to emerge gnome, emerge's output is enormous. How to tell emerge "Do whatever it takes to install gnome"? dmesg's output:
[url]bpaste.net/show/51052[\url] LEt me elaborate a bit on X window: when I installed *both* xorg-X11 and xorg-server, startx did work, but the keyboard was non-responding. When I unmerge either of the two packages, startx complains that some "serverauth.6546" does not exist.
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Sun Oct 14, 2012 8:24 am    Post subject: Reply with quote

OK, I issued "X -configure", and the machine replied: "Fatal server error: Can't read lock file /tmp/.X0.lock". Also, even for the root permission is denied for /var/log/Xorg.0.log. When I list the files in /tmp ith ls, I get several "input-output error" messages.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


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

PostPosted: Sun Oct 14, 2012 11:19 am    Post subject: Reply with quote

X -configure does not work with KMS. Do not use it, You need no xorg.conf at all for the open source drivers. At most you will need to put individual configuration snippets in /etc/X11/xorg.conf.d/ as described in the guide.

Why startx fails will probably be shown in Xorg.0.log. If you have gnome installed you probably don't want to use that anyway, but instead set DISPLAYMANAGER in /etc/conf.d/xdm and then add /etc/init.d/xdm to default runlevel. If you want to install gnome, choosing the desktop/gnome profile with "eselect profile" will set some default USE flags which are needed for gnome.

According to your dmesg, your filesystem is corrupted. Boot from LiveCD or LiveUSB and run fsck.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6504
Location: Goose Creek SC

PostPosted: Sun Oct 14, 2012 4:38 pm    Post subject: Reply with quote

Quote:
rtlwifi: Firmware rtlwifi/rtl8192cufw.bin not available
is in dmesg.
Code:
emerge linux-firmware
to fix it.
_________________
Defund the FCC.
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