Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Safe to unmerge hotplug?
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
shadowhunter
n00b
n00b


Joined: 25 Nov 2003
Posts: 30
Location: Geel, Belgium

PostPosted: Mon Jul 03, 2006 1:15 pm    Post subject: Safe to unmerge hotplug? Reply with quote

Hi,

Is hotplug needed for some reason?
A newer version of udev (079 or something) is superior to hotplug? Isn't it?
I seem to remind something of it being depreceated...

Do some packages depend on it for some reason?
I have a 2006.0 install

Geert.
Back to top
View user's profile Send private message
Kensai
Guru
Guru


Joined: 09 Mar 2004
Posts: 571
Location: Puerto Rico

PostPosted: Mon Jul 03, 2006 5:10 pm    Post subject: Reply with quote

I'm not sure I'm right, but udev now handle the hotplug events so yes udev now can do what hotplug did before but, I don't know if it is safe to unmerge.
_________________
Gentoo: Gigabyte: nFORCE 2: nVIDIA GeForce 6600: AMD Athlon XP 3200+
Leaving the above specs to immortalize the first system I Installed Gentoo on!
Back to top
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Mon Jul 03, 2006 5:49 pm    Post subject: Reply with quote

Yes, udev now blocks and supercedes hotplug. It is safe to unmerge hotplug.
Back to top
View user's profile Send private message
kdvgent
Guru
Guru


Joined: 29 Sep 2004
Posts: 352
Location: Belgium

PostPosted: Mon Jul 03, 2006 6:10 pm    Post subject: Tried to remove hotplug but some packages seem to need it Reply with quote

I followed the advise given and removed hotplug. However the next time I did "emerge -uDav --newuse world", it was indicated that hoplug would be installed again.

I checked:

Quote:
# equery depends hotplug
[ Searching for packages depending on hotplug... ]
media-libs/libgphoto2-2.1.6-r2
sys-apps/hal-0.5.7-r3
net-print/hplip-1.6.6-r1


????
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Mon Jul 03, 2006 6:38 pm    Post subject: Reply with quote

I can't understand someone not mentioning coldplug.
Has it not superceded hotplug in company of udev?
_________________
idella4@aus
Back to top
View user's profile Send private message
kdvgent
Guru
Guru


Joined: 29 Sep 2004
Posts: 352
Location: Belgium

PostPosted: Mon Jul 03, 2006 7:27 pm    Post subject: coldplug has been removed Reply with quote

One of the recent upgrades of udev "said" to remove coldplug. I did and all is going OK.

If I try to install coldplug again, it is blocked by udev:

Quote:
# emerge -pv coldplug
>>> cfg-update-1.8.0-r3 : No new packages have been emerged, checksum index OK...

These are the packages that would be merged, in order:

Calculating dependencies... done!
[blocks B ] >=sys-fs/udev-089 (is blocking sys-apps/coldplug-20040920-r1)
[ebuild N ] sys-apps/coldplug-20040920-r1 0 kB

Total size of downloads: 0 kB
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Mon Jul 03, 2006 8:06 pm    Post subject: Reply with quote

most curious. my system has coldplug and udev. probably platform specific
_________________
idella4@aus
Back to top
View user's profile Send private message
shadowhunter
n00b
n00b


Joined: 25 Nov 2003
Posts: 30
Location: Geel, Belgium

PostPosted: Mon Jul 03, 2006 9:51 pm    Post subject: Reply with quote

what about hotplug-base...

It seems to be a dependency of udev? do you guys have it?

Geert.
Back to top
View user's profile Send private message
Beefrum
Apprentice
Apprentice


Joined: 23 May 2006
Posts: 234

PostPosted: Mon Jul 03, 2006 9:56 pm    Post subject: Reply with quote

Using 'sys-apps/hotplug-base'. You can replace 'sys-apps/hotplug' in the ebuilds for it. 8)
_________________
:? Give adaptive answers to unknown problems!
Back to top
View user's profile Send private message
onlymee
n00b
n00b


Joined: 27 May 2004
Posts: 24

PostPosted: Sat Jul 08, 2006 11:41 am    Post subject: Reply with quote

I'm very interested in this too... I also believed that hotplug was some how deprecated by udev, yet hal for example (an inherently udev related pacakge) depends upon hotplug.

Beefrum, are you suggesting that the dependencies of hal are wrong and the sys-apps/hotplug dep should be replaced with sys-apps/hotplug-base? I hunted bugzilla for anything about this but to my surprise turned up nothing so far. Has anybody confirmed that hotplug-base is sufficient? Perhaps a bug should be opened.
Back to top
View user's profile Send private message
onlymee
n00b
n00b


Joined: 27 May 2004
Posts: 24

PostPosted: Sat Jul 08, 2006 12:02 pm    Post subject: Reply with quote

This is discussed a little here:
https://forums.gentoo.org/viewtopic-t-350590-highlight-hald+hotplugbase.html

(perhaps a mod would like to merge these threads?)
Back to top
View user's profile Send private message
Emopig
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 188

PostPosted: Sun Jul 09, 2006 12:02 pm    Post subject: Reply with quote

I did an "rc-update del coldplug" and after a reboot my eth0 network no longer worked!

After a bit of googling though it appears the coldplug functionality in gentoo's udev has been disabled. Heres a hint:

Code:
 ~ $ fgrep -A 2 coldplug /lib/rcscripts/addons/udev-start.sh
        # if you want real coldplug (with all modules being loaded for all
        # devices in the system), uncomment out the next line.
        list="$list $(echo /sys/bus/*/devices/*/uevent)"


...I did this and then I no longer need coldplug in my boot runlevel. I'm using udev 087-r1
Back to top
View user's profile Send private message
Beefrum
Apprentice
Apprentice


Joined: 23 May 2006
Posts: 234

PostPosted: Sun Jul 16, 2006 5:53 am    Post subject: Reply with quote

onlymee: I can! 2.6.17 kernel with that change in the ebuild!
_________________
:? Give adaptive answers to unknown problems!
Back to top
View user's profile Send private message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 297

PostPosted: Wed Jul 19, 2006 3:42 pm    Post subject: Reply with quote

Emopig wrote:
I did an "rc-update del coldplug" and after a reboot my eth0 network no longer worked!

After a bit of googling though it appears the coldplug functionality in gentoo's udev has been disabled. Heres a hint:

Code:
 ~ $ fgrep -A 2 coldplug /lib/rcscripts/addons/udev-start.sh
        # if you want real coldplug (with all modules being loaded for all
        # devices in the system), uncomment out the next line.
        list="$list $(echo /sys/bus/*/devices/*/uevent)"


...I did this and then I no longer need coldplug in my boot runlevel. I'm using udev 087-r1


Thanks for the tip! I tried unmerging coldplug first (before reading your message) and it messed up with gome: every time I logged off, I had a blank screen. Then I commented out the line in udev-start.sh as you said and I could remove coldplug from boot runlevel. The question now id: is it safe to unmerge coldplug at all ?
Back to top
View user's profile Send private message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 297

PostPosted: Thu Jul 20, 2006 1:22 am    Post subject: Reply with quote

Hmmm, wrong.
I had to revert back to rc_coldplug=yes, and comment out the line, and add coldplug to boot runlevel in order to get my net.eth0 to work...

Is there somewhere a good tutorial/explanation on how hald/dbus/hotplug/coldplug/udev work together ? I think this is one of the most annoying things to set up correctly in gentoo.
Back to top
View user's profile Send private message
cyberpatrol
Apprentice
Apprentice


Joined: 18 Sep 2003
Posts: 161
Location: Germany

PostPosted: Sat Aug 26, 2006 4:47 am    Post subject: Reply with quote

I hope I can clarify it a bit. ;-)

If >=udev-096 - I don't know which was the first version with hotplug and coldplug functionality - is installed you don't need to have installed hotplug and coldplug. I would even say you mustn't have installed hotplug and coldplug because udev on the one hand and hotplug and coldplug on the other hand seem to conflict with each other.

I explained it in bug 143660.

To activate udev's hotplug functionality this has to be set in /etc/conf.d/rc:
Code:
RC_HOTPLUG="yes"


To prevent udev from loading every kernel module at boot time this has to be set in /etc/conf.d/rc:
Code:
RC_COLDPLUG="no"
RC_PLUG_SERVICES="!*"


The modules which shall be loaded at boot time (coldplugged) can be set in /etc/modules.autoload.d/kernel-<kernel version>.

Btw, hotplug-base is a dependency of hotplug as well as of udev, so it mustn't be uninstalled.
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