View previous topic :: View next topic |
Author |
Message |
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Wed Feb 04, 2015 12:19 pm Post subject: Anybody using mdev? |
|
|
Anybody use at this time mdev ?
eudev nearly same as udev, and i do not want use that.
Split from Distributions using eudev as it really is a different topic. — JRG |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Feb 04, 2015 8:03 pm Post subject: |
|
|
stephan-t wrote: | Anybody use at this time mdev? |
stephan-t ... yes, me ... though I use sys-fs/mdev-bb::foo-overlay and sys-fs/mdev-like-a-boss::foo-overlay and not sys-apps/busybox[mdev]. If you have any questions then you're probably best to start a seperate thread ...
best ... khay |
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Thu Feb 05, 2015 6:25 pm Post subject: |
|
|
khayyam wrote: | stephan-t wrote: | Anybody use at this time mdev? |
stephan-t ... yes, me ... though I use sys-fs/mdev-bb::foo-overlay and sys-fs/mdev-like-a-boss::foo-overlay and not sys-apps/busybox[mdev]. If you have any questions then you're probably best to start a seperate thread ...
best ... khay |
Okay, tell me what a different between those package or busybox with mdev support and what the next step?
Your answer put this here |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Feb 05, 2015 7:15 pm Post subject: |
|
|
stephan-t wrote: | khayyam wrote: | stephan-t wrote: | Anybody use at this time mdev? |
stephan-t ... yes, me ... though I use sys-fs/mdev-bb::foo-overlay and sys-fs/mdev-like-a-boss::foo-overlay and not sys-apps/busybox[mdev]. If you have any questions then you're probably best to start a seperate thread ... |
Okay, tell me what a different between those package or busybox with mdev support and what the next step? |
stephan-t ... as I said, you're probably best to start a new thread for this as this thread is about eudev.
stephan-t wrote: | Your answer put this here |
I think I pretty much covered everything there is to know in that thread ... except perhaps removing evdev from INPUT_DEVICES= if you're going to remove {e,}udev entirely.
best ... khay |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Feb 05, 2015 7:18 pm Post subject: |
|
|
khayyam wrote: | ... as I said, you're probably best to start a new thread for this as this thread is about eudev. ... | Yes, and, lo it came to pass.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Thu Feb 05, 2015 8:33 pm Post subject: |
|
|
So, remove the evdev from input, unmerge the virtual/udev , libudev, libgudev sys-fs/eudev, udev-init-scipts , xf86-input-evdev and set the mouse , keyboard to INPUT_DEVICES.
After when i modified the virtual/dev-manager, never brake the system because i update whole packages?
What packages masked or put the provided list ?
Why xorg-server say set the udev flag ?
gz |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Feb 05, 2015 9:12 pm Post subject: |
|
|
stephan-t wrote: | So, remove the evdev from input, unmerge the virtual/udev , libudev, libgudev sys-fs/eudev, udev-init-scipts , xf86-input-evdev and set the mouse , keyboard to INPUT_DEVICES. |
stephan-t ... it looks like we have two concurrent threads on this same subject (see: here) as user tw04l124 asked the same question just before JRG split this off from the eudev thread. Anyhow, NO! hehehe ... you need to work out some things first before you start removing packages, you probably have stuff that is built against libgudev and they will break if you do that. You sort of have some of the procedure, but remember removing udev-init-scripts will leave the services in the runlevel, and you will need to start up mdev in their place.
I can see I'm going to end up repeating myself, so I'm best to point you to the mdev wiki page (particularly the "sanity check" section) and mdev-like-a-boss. You should be able to work out a plan of action from those two pages, plus reading what I'd written in the above linked thread (and perhaps also other threads I've contributed to on this subject).
stephan-t wrote: | Why xorg-server say set the udev flag ? |
becuase xorg uses 'eudev' to configure the keyboard/mouse ... its not needed, as you can use the xorg-conf.d from mdev-like-a-boss, but you will need to re-merge it with -udev and with INPUT_DEVICES="keyboard mouse" (and 'synaptics' maybe).
HTH & best ... khay |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Feb 05, 2015 9:17 pm Post subject: |
|
|
boozo wrote: | (btw, sometimes it's nice to see that "we" are not alone in the dark ^^ ) |
boozo ... heh, no, its they who are in the dark ... que "... and you'll never walk alooonne" ;)
best ... khay |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Mon Feb 09, 2015 8:35 pm Post subject: |
|
|
Hello,
Can I hijack this thread too ?
I tried busybox[mdev] and mdev like a boss init script, but I have issues :
- the ethernet driver is not loaded, maybe because of firmware
- I use an initramfs to initiatlize a LUKS+LVM2 system, but the /dev/mapper/ entries are not present in the running system, so I cannot mount the remaining partitions (I could do it in the initramfs, but for now, I let the system mount them later) EDIT: http://www.gossamer-threads.com/lists/gentoo/user/270576
USB keyboard is well hot/cold plugged. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Mon Feb 09, 2015 8:47 pm Post subject: |
|
|
I can speak to the /dev/mapper problem.
Add the following line to /etc/init.d/mdev in the populate_mdev() method
Also, auto loading is not done with mdev. You need to add your modules manually, if I recall correctly.
I stopped using mdev because it wouldn't handle joysticks fluidly. _________________ 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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Feb 09, 2015 9:48 pm Post subject: |
|
|
xaviermiller wrote: | Can I hijack this thread too ? ;) |
xavier ... only if you ask nicely ;)
xaviermiller wrote: | - the ethernet driver is not loaded, maybe because of firmware |
As the Doctor mentioned, no auto loading of modules, you can use /etc/conf.d/modules ... or via preup() in conf.d/net.
xaviermiller wrote: | - I use an initramfs to initiatlize a LUKS+LVM2 system, but the /dev/mapper/ entries are not present in the running system, so I cannot mount the remaining partitions (I could do it in the initramfs, but for now, I let the system mount them later) |
This has to be an issue with genkernel (or whatever initramfs you are using) as with better-initramfs I don't have this problem.
I saw that note on the wiki when first setting up my LUKS+LVM2+mdev ... didn't have any issues, so assumed there was nothing in it. Again, the user reporting this was probably using genkernel (or rather, its an issue with the initramfs rather than mdev).
xaviermiller wrote: | USB keyboard is well hot/cold plugged. |
Hmmm ... I think I got this working at one point, but I don't remember how exactly, and don't have a USB kbd handy to test.
best ... khay |
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Sun Feb 22, 2015 10:47 am Post subject: |
|
|
Anybody use trackball or usb mechanical keyboard with mdev? I'm not need hotplug or rules for keyboard, changed the keycode and loaded with Xmodmap I think can all that with this tool. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Feb 22, 2015 1:16 pm Post subject: |
|
|
stephan-t wrote: | Anybody use trackball or usb mechanical keyboard with mdev? |
stephan-t ... I haven't no, but as its configured via /etc/X11/xorg-conf.d/ it should simply be a matter of having a suitable 10-keyboard.conf
best ... khay |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Sun Feb 22, 2015 1:37 pm Post subject: |
|
|
stephan-t,
xorg.conf still works.
I'm not sure if mdev supports evdev but if not the following works for xorg after the keyboard works in the console.
Code: | Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# Option "LeftAlt" "Meta"
# Option "RightAlt" "ModeShift"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc105"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# These are the default XKB settings for Xorg
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc105"
# Option "XkbLayout" "us"
# Option "XkbVariant" ""
# Option "XkbDisable"
Option "xkblayout" "gb"
# comment out the next line if you don't have a dvorak keyboard
Option "xkbvariant" "dvorak"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
# why "pc102"
Option "XkbOptions" "ctrl:swapcaps"
EndSection |
If the keyboard won't work in the console, it will be some or all of your kernel USB modules not loading. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Sun Feb 22, 2015 4:39 pm Post subject: |
|
|
Quote: | khayyam & NeddySeagoon
|
The Xorg driver is still work. Use keyboard.conf and mouse.conf from mdev-like-a-boss and add some modification.
I find the documents in Xorg archive : kbd, mouse
Thanks. |
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Tue Mar 03, 2015 7:54 pm Post subject: |
|
|
This packages need for my system?
hwids or udev-init-scipts? |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Tue Mar 03, 2015 9:19 pm Post subject: |
|
|
stephan-t wrote: | This packages need for my system? hwids or udev-init-scipts? |
stephan-t ... hwids is needed by pciutils, <usbutils-008 (though the package dependencies currently don't take that into account), and others ... udev-init-scripts isn't needed by mdev, but unless you've purged {e,}udev then you'll find them pulled in as a dependency.
best ... khay |
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Fri Mar 13, 2015 8:16 pm Post subject: |
|
|
khayyam wrote: | stephan-t wrote: | This packages need for my system? hwids or udev-init-scipts? |
stephan-t ... hwids is needed by pciutils, <usbutils-008 (though the package dependencies currently don't take that into account), and others ... udev-init-scripts isn't needed by mdev, but unless you've purged {e,}udev then you'll find them pulled in as a dependency.
best ... khay |
Okay
because i want rebuild package with @preserved-rebuild i get this message
Code: | [ebuild R ] sys-fs/lvm2-2.02.109 USE="-udev*"
[ebuild R ] app-misc/geoclue-2.1.10 USE="-modemmanager*"
[ebuild N #] sys-fs/udev-216 USE="firmware-loader gudev introspection kmod -acl -doc (-selinux) -static-libs"
[ebuild N #] virtual/udev-215 USE="-systemd"
[ebuild R ] sys-apps/hwids-20141010 USE="udev*"
[ebuild R ] dev-libs/libatasmart-0.19-r1
[ebuild R ] x11-drivers/xf86-video-nouveau-1.0.11
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by sys-fs/udev-216
# required by virtual/udev-215[-systemd]
# required by dev-libs/libatasmart-0.19-r1
# required by @preserved-rebuild (argument)
=sys-apps/hwids-20141010 udev
Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages. |
|
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Mar 13, 2015 9:09 pm Post subject: |
|
|
stephan-t wrote: | because i want rebuild package with @preserved-rebuild i get this message
Code: | [ebuild R ] sys-apps/hwids-20141010 USE="udev*" |
|
stephan-t ... yes, as the udev useflag is enabled ... you should disable globally in make.conf.
/etc/portage/make.conf
best ... khay |
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Sat Mar 14, 2015 2:15 pm Post subject: |
|
|
khayyam
nope, but gudev is enabled. |
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Sun Jul 26, 2015 7:00 pm Post subject: |
|
|
Long time ago cannot see the bug, but some broken things about reinstall the system. Mdev is possibly not work as well with xorg drivers for me. No keyboard and mouse respond because i cannot remove evdev and udev packages. The steps is backwards.
Could I use the another method for my input devices Such like libinput ? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Sun Jul 26, 2015 7:28 pm Post subject: |
|
|
stephan-t,
I actually have a static /dev - no auto anything.
No kernel devtmpfs or evdev and I still manage to have root in LVM on top of raid5.
Its just the way it was is 1999 when I started playing with Linux. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Jul 26, 2015 8:39 pm Post subject: |
|
|
stephan-t wrote: | Mdev is possibly not work as well with xorg drivers for me. No keyboard and mouse respond because i cannot remove evdev and udev packages. The steps is backwards. |
stephan-t ... well, I can assure you it does work, and that no {e,}udev is needed ... at least as far as those packages I have installed are concerned, and the useflags enabled, etc.
If you have x11-drivers/xf86-input-evdev then this suggests you have the udev useflag enabled on x11-base/xorg-server. If you get no kdb/mouse without udev then you probably don't have /etc/X11/xorg.conf.d/* configured for a kbd/mouse/trackpad.
It's possible that other packages are pulling in sys-fs/{e,}udev ... specifically virtual/dev-manager ... but without knowing what you're doing, or what you've done, it's difficult to debug the issue.
stephan-t wrote: | Could I use the another method for my input devices Such like libinput? |
AFAIK, that is exclusively for wayland ... so no.
best ... khay |
|
Back to top |
|
|
stephan-t Tux's lil' helper
Joined: 12 May 2014 Posts: 122
|
Posted: Mon Jul 27, 2015 3:20 pm Post subject: |
|
|
NeddySeagoon wrote: | stephan-t,
I actually have a static /dev - no auto anything.
No kernel devtmpfs or evdev and I still manage to have root in LVM on top of raid5.
Its just the way it was is 1999 when I started playing with Linux. |
Can I find the Wiki?
Okay but this manage all things then I have: like keyboard, trackball or other devices?
@khayyam
I did same steps than some months earlier. But I'dont know what part not work. I have a xorg.conf.d and all settings file from mdev-like-a-boss. Set the right INPUT_DEVICES in make.conf and rebuild packages without udev. |
|
Back to top |
|
|
|