View previous topic :: View next topic |
Author |
Message |
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Thu Feb 24, 2011 11:23 am Post subject: [SOLVED] /etc/init.d/hald does not exist |
|
|
I followed the handbook instructions and now I have a gentoo installation which seems to work perfectly. Now I want to install KDE (my eselect profile list is set to KDE) and I'm following the Xorg guide but I can't find hald file in my /etc/init.d path. Does this mean that I have compiled kernel incorrectly and I have to install everything from scratch?
Last edited by lizz0 on Sat Feb 26, 2011 6:57 am; edited 1 time in total |
|
Back to top |
|
|
chiefbag Guru
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Thu Feb 24, 2011 11:39 am Post subject: |
|
|
Did you do the following?
emerge -va hal
You will probably need to add the "hal" use flag in your /etc/make.conf also |
|
Back to top |
|
|
gentoo-dev Apprentice
Joined: 24 Jan 2006 Posts: 172
|
Posted: Thu Feb 24, 2011 11:40 am Post subject: |
|
|
iirc, you don't need hal anymore. Just ignore this. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Feb 24, 2011 1:56 pm Post subject: |
|
|
It depends if you install a Gentoo Stable or Testing. |
|
Back to top |
|
|
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Thu Feb 24, 2011 2:41 pm Post subject: |
|
|
chiefbag wrote: | Did you do the following?
emerge -va hal
You will probably need to add the "hal" use flag in your /etc/make.conf also |
I already had "hal" in my USE flag however the command emerge -va hal indicated that I have to add yet another keyword which fixed the issue. Thanks for your help. However I still get error when I issue startx. It says something about pixman, vesa and fbdev, modules i915 not found, no devices detected and finally Fatal server error: no screens found (apologise for this short description of the full error; the file redirection tip does not work for startx). Xorg -configure does show a similar error. What am I missing? |
|
Back to top |
|
|
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Thu Feb 24, 2011 2:42 pm Post subject: |
|
|
d2_racing wrote: | It depends if you install a Gentoo Stable or Testing. |
I followed the Gentoo Handbook. I guess it is stable. |
|
Back to top |
|
|
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Thu Feb 24, 2011 2:43 pm Post subject: |
|
|
gentoo-dev wrote: | iirc, you don't need hal anymore. Just ignore this. |
Really? The wiki says I have to install it. |
|
Back to top |
|
|
bandreabis Advocate
Joined: 18 Feb 2005 Posts: 2490 Location: イタリアのロディで
|
Posted: Thu Feb 24, 2011 3:02 pm Post subject: |
|
|
Forget hal.
You already chose KDE profile. Unmask KDE-4.6.0, it's working like a charm.
You will install xorg-server puttinig VIDEO_CARDS="radeon fglrx nvidia vesa vmware intel" (choose one depending on your video card) and INPUT_DEVICES="evdev synaptics" (the latter depending on if you have or not a touchpad).
Then emerge KDE (meta or single ebuilds).
Nothing else to do. _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
|
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Thu Feb 24, 2011 3:25 pm Post subject: |
|
|
bandreabis wrote: | Forget hal.
You already chose KDE profile.
You will install xorg-server puttinig VIDEO_CARDS="radeon fglrx nvidia vesa vmware intel" (choose one depending on your video card) and INPUT_DEVICES="evdev synaptics" (the latter depending on if you have or not a touchpad).
Then emerge KDE (meta or single ebuilds).
Nothing else to do. |
I've set VIDEO_CARDS="intel" and INPUT_DEVICES="evdev synaptics". emerge -av kde-meta gives me the following error:
Quote: | These are the packages that would be merged, in order:
Calculating dependencies ...... done!
!!! All ebuilds that could satisfy ">=media-sound/phonon-vlc-0.3.2" have been masked.
!!! One of the following masked packages is required to complete your request:
- media-sound/phonon-vlc-9999 (masked by: missing keyword)
- media-sound/phonon-vlc-0.3.2 (masked by: ~x86 keyword)
(dependency required by "media-sound/phonon-4.4.4" [ebuild])
(dependency required by "kde-base/kdelibs-4.6.0-r1" [ebuild])
(dependency required by "kde-misc/polkit-kde-kcmodules-0.98_pre20101127" [ebuild])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
|
Anyway, How does KDE suppose to work when Xorg won't work at the first place? |
|
Back to top |
|
|
bandreabis Advocate
Joined: 18 Feb 2005 Posts: 2490 Location: イタリアのロディで
|
Posted: Thu Feb 24, 2011 4:00 pm Post subject: |
|
|
It's tedious, but among gentoo handbooks you can find a quicker solution.
But it not that difficult:
Code: | echo =media-sound/phonon-vlc-0.3.2 ~x86 >> /etc/portage/package.keywords && emerge -av kde-meta |
Substitute any package with the masked one, till portage will show you packages it wants to emerge.
PS. ("=" tells portage to emerge that version) I unmasked every package despite its version. Without "=" and version.
I don't know which of the two method is better. Maybe with the former you can have a better control on updates.
It's upon you.
EDIT: Did you put VIDEO_CARDS="intel" and INPUT_DEVICES="evdev synaptics" prior or after emerging xorg-server?
If after, you have to emerge again and
and Code: | emerge -1 xf86-input-evdev xf86-input-synaptics xf86-video-intel |
Hope it can help you. _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
|
Uli Sing Apprentice
Joined: 03 May 2010 Posts: 197 Location: MUC
|
Posted: Thu Feb 24, 2011 4:54 pm Post subject: |
|
|
d2_racing wrote: | It depends if you install a Gentoo Stable or Testing. |
Is there any difference?
SCNR |
|
Back to top |
|
|
bandreabis Advocate
Joined: 18 Feb 2005 Posts: 2490 Location: イタリアのロディで
|
Posted: Thu Feb 24, 2011 7:25 pm Post subject: |
|
|
Uli Sing wrote: | d2_racing wrote: | It depends if you install a Gentoo Stable or Testing. |
Is there any difference?
SCNR |
KDE4.6 does not depends on hal anymore. _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
|
Uli Sing Apprentice
Joined: 03 May 2010 Posts: 197 Location: MUC
|
Posted: Thu Feb 24, 2011 8:41 pm Post subject: |
|
|
Yes, I know.
It was a ...
...really stupid joke.
Sorry for that. |
|
Back to top |
|
|
bandreabis Advocate
Joined: 18 Feb 2005 Posts: 2490 Location: イタリアのロディで
|
Posted: Fri Feb 25, 2011 5:30 am Post subject: |
|
|
I supposed, but was not sure. _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Fri Feb 25, 2011 5:44 am Post subject: |
|
|
That i915 error looks like the i915 module and/or i915 mode setting by default is missing from the kernel.
Check you kernel and recompile if necessary.
My two cents, Its worth it to go right to 4.6 so you don't need to get rid of hal later. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
Uli Sing Apprentice
Joined: 03 May 2010 Posts: 197 Location: MUC
|
Posted: Fri Feb 25, 2011 9:45 pm Post subject: |
|
|
bandreabis wrote: | I supposed, but was not sure. |
You can never be sure. That's the only thing what makes life interesting. |
|
Back to top |
|
|
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Sat Feb 26, 2011 2:14 am Post subject: |
|
|
OK I'm back, It took my computer 25 hours to compile KDE. I didn't know it would possibly take so much time. I installed the 4.6 version(changed the /etc/portage/package.keywords as indicated in the wiki). However when I run the startkde command I get the follwoing error:
Quote: | $DISPLAY is not set or cannot connect to the X server |
Besides, startx still does not work(same old error that I mentioned in one of my posts). What do you suggest?
Quote: | That i915 error looks like the i915 module and/or i915 mode setting by default is missing from the kernel.
Check you kernel and recompile if necessary. |
I hope that doesn't mean I have to install everything from scratch How can I recompile kernel without removing other packages? |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat Feb 26, 2011 2:50 am Post subject: |
|
|
lizz0 wrote: | I hope that doesn't mean I have to install everything from scratch |
The whole point of gentoo is that after so much time compiling, you don't decide to just start from scratch
lizz0 wrote: | How can I recompile kernel without removing other packages? |
Do the same as you did when configured the kernel in the handbook:
Code: | # cd /usr/src/linux
# make menuconfig
(change settings)
# make && make modules_install
# cp arch/x86/boot/bzImage /boot/my-kernel
# reboot |
You should ensure that you have the i915 drivers enabled (in menuconfig, press '/' and type in 915; it should say DRM_I915 [=y] and DRM_I915_KMS [=y]) _________________ “And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010 |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sat Feb 26, 2011 2:51 am Post subject: |
|
|
Quote: |
I hope that doesn't mean I have to install everything from scratch How can I recompile kernel without removing other packages?
|
Oh NO! defiantly not!
To install the kernel again, make sure that /boot is mounted if needed
then if you used genkernel:
Code: |
cd /usr/src/linux
genkernel --menuconfig all
|
and select
i915 and the mod setting option that will appearer under it
The path is, I believe something like this:
Device Drivers ==> Graphics support ==> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
That said, first try running this:
Code: |
Xorg -configure
X -retro <path that xorg gives>
|
if that works, then do this
Code: |
cp <path that xorg gives> /etc/X11/xorg.conf
|
This might be optimistic, but it is faster than recompiling the kernel.
edit: sorry, looks like someone beat me to it _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Sat Feb 26, 2011 6:16 am Post subject: |
|
|
Etal wrote: | lizz0 wrote: | I hope that doesn't mean I have to install everything from scratch |
The whole point of gentoo is that after so much time compiling, you don't decide to just start from scratch
lizz0 wrote: | How can I recompile kernel without removing other packages? |
Do the same as you did when configured the kernel in the handbook:
Code: | # cd /usr/src/linux
# make menuconfig
(change settings)
# make && make modules_install
# cp arch/x86/boot/bzImage /boot/my-kernel
# reboot |
You should ensure that you have the i915 drivers enabled (in menuconfig, press '/' and type in 915; it should say DRM_I915 [=y] and DRM_I915_KMS [=y]) |
I recompiled the kernel with i915 drivers support and followed the instructions here http://en.gentoo-wiki.com/wiki/Intel_GMA now it seems that the i915 problem is solved but startx still shows the following error:
Quote: | (EE) Failed to load module "vesa" (module does not exist, 0)
(EE) Failed to load module "fbdev" (module does not exist, 0)
FATAL: Module fbcon not found.
(EE) SynPS/2 Synaptics TouchPad no synaptics event device found
(EE) Query no Synaptics: 60003C8
(EE) SynPS/2 Synaptics Touchpad Unable to query/initialize Synaptics hardware
(EE) PreInit failed for input device "SynPS/2 Synaptics TouchPad"
/etc/X11/xinit/xinitrc: Line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found
xinit: connection to X server lost
waiting for X server to shut down |
What are these fbcon, fbdev, vesa? Are they related to framebuffer? Additionally I have compiled both Synaptics and PS/2 in my kernel. Also here is my /etc/make.conf:
Quote: |
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/"
USE="-gtk -gnome qt4 kde dvd alsa hal static-libs"
INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="intel" |
I'm still very much suspicious of hal. |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sat Feb 26, 2011 6:32 am Post subject: |
|
|
hal has nothing to do with X anymore.
Quote: |
what are these fbcon, fbdev, vesa? Are they related to framebuffer?
|
I am pretty sure that none of that is fatal.
It looks about what my old computer did when tring to start X.
this bit
Code: | /etc/X11/xinit/xinitrc: Line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found |
says that there is nothing for X to display.
try running this:
if that works, than kde should work.
twm is also lightweight if you really want to test X, you can emerge it but it isn't good for much else.
You can try to run kdm as the root user. If it starts, then you can take a good look at kde.
Quote: | I installed the 4.6 version |
This means that hal is doing absolutely nothing for you. If you unset the hal use flag, you can get rid of it.
EDIT: look at this topic for instructions: https://forums.gentoo.org/viewtopic-t-858965.html _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Last edited by The Doctor on Sat Feb 26, 2011 6:39 am; edited 1 time in total |
|
Back to top |
|
|
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Sat Feb 26, 2011 6:37 am Post subject: |
|
|
penguin swordmaster wrote: | hal has nothing to do with X anymore.
Quote: |
what are these fbcon, fbdev, vesa? Are they related to framebuffer?
|
I am pretty sure that none of that is fatal.
It looks about what my old computer did when tring to start X.
this bit
Code: | /etc/X11/xinit/xinitrc: Line 59: twm: command not found
/etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found |
says that there is nothing for X to display.
try running this:
if that works, than kde should work.
twm is also lightweight if you really want to test X, you can emerge it but it isn't good for much else.
You can try to run kdm as the root user. If it starts, then you can take a good look at kde.
Quote: | I installed the 4.6 version |
This means that hal is doing absolutely nothing for you. If you unset the hal use flag, you can get rid of it. |
X -retro works but KDE does not. startkde command shows the following error:
Quote: | $DISPLAY is not set or cannot connect to the X server. |
|
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sat Feb 26, 2011 6:42 am Post subject: |
|
|
try this
Code: | rc-update add xdm default
|
in
/etc/conf.d/xdm
set the following
Code: |
DISPLAYMANAGER="kdm"
|
restart.
kdm should start and you can log into kde.
for kde 4.6 look at the following, as kde does not use hal, instead there other thing needed:
https://forums.gentoo.org/viewtopic-t-858965.html
EDIT:fixed major typo _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
lizz0 n00b
Joined: 22 Feb 2011 Posts: 11
|
Posted: Sat Feb 26, 2011 6:56 am Post subject: |
|
|
penguin swordmaster wrote: | try this
Code: | rc-update add xdm default
|
in
/etc/conf.d/xdm
set the following
Code: |
DISPLAYMANAGER="kdm"
|
restart.
kdm should start and you can log into kde.
for kde 4.6 look at the following, as kde does not use hal, instead there other thing needed:
https://forums.gentoo.org/viewtopic-t-858965.html
EDIT:fixed major typo |
Yes! Finally I've got KDE working. wow! It took nearly 3 days but honestly It was a joyful experience and I learned a lot. Thank you all for your great help!
BTW, what a splendid graphics KDE has... |
|
Back to top |
|
|
bandreabis Advocate
Joined: 18 Feb 2005 Posts: 2490 Location: イタリアのロディで
|
Posted: Sat Feb 26, 2011 8:17 am Post subject: |
|
|
RTFM!
Sometimes it is useful. _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
|
|