Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Safe to unmerge hotplug?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
shadowhunter
n00b
n00b
Posts: 30
Joined: Tue Nov 25, 2003 4:45 pm
Location: Geel, Belgium

Safe to unmerge hotplug?

  • Quote

Post by shadowhunter » Mon Jul 03, 2006 1:15 pm

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.
Top
Kensai
Guru
Guru
User avatar
Posts: 575
Joined: Tue Mar 09, 2004 1:03 am
Location: Puerto Rico
Contact:
Contact Kensai
Website

  • Quote

Post by Kensai » Mon Jul 03, 2006 5:10 pm

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!
Top
chunderbunny
Veteran
Veteran
User avatar
Posts: 1281
Joined: Mon May 31, 2004 11:28 am
Location: 51°24'27" N, 0°57'15" W

  • Quote

Post by chunderbunny » Mon Jul 03, 2006 5:49 pm

Yes, udev now blocks and supercedes hotplug. It is safe to unmerge hotplug.
Top
kdvgent
Guru
Guru
Posts: 352
Joined: Wed Sep 29, 2004 6:16 pm
Location: Belgium

Tried to remove hotplug but some packages seem to need it

  • Quote

Post by kdvgent » Mon Jul 03, 2006 6:10 pm

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:
# 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
????
Top
idella4
Retired Dev
Retired Dev
User avatar
Posts: 1600
Joined: Fri Jun 09, 2006 11:29 am
Location: Australia, Perth

  • Quote

Post by idella4 » Mon Jul 03, 2006 6:38 pm

I can't understand someone not mentioning coldplug.
Has it not superceded hotplug in company of udev?
idella4@aus
Top
kdvgent
Guru
Guru
Posts: 352
Joined: Wed Sep 29, 2004 6:16 pm
Location: Belgium

coldplug has been removed

  • Quote

Post by kdvgent » Mon Jul 03, 2006 7:27 pm

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:
# 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
Top
idella4
Retired Dev
Retired Dev
User avatar
Posts: 1600
Joined: Fri Jun 09, 2006 11:29 am
Location: Australia, Perth

  • Quote

Post by idella4 » Mon Jul 03, 2006 8:06 pm

most curious. my system has coldplug and udev. probably platform specific
idella4@aus
Top
shadowhunter
n00b
n00b
Posts: 30
Joined: Tue Nov 25, 2003 4:45 pm
Location: Geel, Belgium

  • Quote

Post by shadowhunter » Mon Jul 03, 2006 9:51 pm

what about hotplug-base...

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

Geert.
Top
Beefrum
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Tue May 23, 2006 2:46 pm
Contact:
Contact Beefrum
Website

  • Quote

Post by Beefrum » Mon Jul 03, 2006 9:56 pm

Using 'sys-apps/hotplug-base'. You can replace 'sys-apps/hotplug' in the ebuilds for it. 8)
:? Give adaptive answers to unknown problems!
Top
onlymee
n00b
n00b
Posts: 24
Joined: Thu May 27, 2004 1:05 pm
Contact:
Contact onlymee
Website

  • Quote

Post by onlymee » Sat Jul 08, 2006 11:41 am

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.
Top
onlymee
n00b
n00b
Posts: 24
Joined: Thu May 27, 2004 1:05 pm
Contact:
Contact onlymee
Website

  • Quote

Post by onlymee » Sat Jul 08, 2006 12:02 pm

This is discussed a little here:
http://forums.gentoo.org/viewtopic-t-35 ... gbase.html

(perhaps a mod would like to merge these threads?)
Top
Emopig
Apprentice
Apprentice
User avatar
Posts: 188
Joined: Wed Mar 15, 2006 2:21 pm

  • Quote

Post by Emopig » Sun Jul 09, 2006 12:02 pm

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: Select all

 ~ $ 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
Top
Beefrum
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Tue May 23, 2006 2:46 pm
Contact:
Contact Beefrum
Website

  • Quote

Post by Beefrum » Sun Jul 16, 2006 5:53 am

onlymee: I can! 2.6.17 kernel with that change in the ebuild!
:? Give adaptive answers to unknown problems!
Top
ats2
Apprentice
Apprentice
Posts: 297
Joined: Fri Apr 22, 2005 9:56 am

  • Quote

Post by ats2 » Wed Jul 19, 2006 3:42 pm

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: Select all

 ~ $ 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 ?
Top
ats2
Apprentice
Apprentice
Posts: 297
Joined: Fri Apr 22, 2005 9:56 am

  • Quote

Post by ats2 » Thu Jul 20, 2006 1:22 am

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.
Top
cyberpatrol
Apprentice
Apprentice
Posts: 161
Joined: Thu Sep 18, 2003 10:45 pm
Location: Germany

  • Quote

Post by cyberpatrol » Sat Aug 26, 2006 4:47 am

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[/bug].

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

Code: Select all

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: Select all

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.
Top
Post Reply

16 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic