Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Anybody using mdev?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Wed Feb 04, 2015 12:19 pm    Post subject: Anybody using mdev? Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Feb 04, 2015 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Thu Feb 05, 2015 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Feb 05, 2015 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Feb 05, 2015 7:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Thu Feb 05, 2015 8:24 pm    Post subject: Reply with quote

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

Hi,
me too since ~ 2 years :wink: so... it's "busybox-styling" for me but anyway the option "mdev-like-a-boss" from slashbeast (a gentoo dev) is pretty cool too :)

(btw, sometimes it's nice to see that "we" are not alone in the dark ^^ )
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Thu Feb 05, 2015 8:33 pm    Post subject: Reply with quote

Quote:
@khayyam



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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Feb 05, 2015 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Feb 05, 2015 9:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8632
Location: ~Brussels - Belgique

PostPosted: Mon Feb 09, 2015 8:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2668

PostPosted: Mon Feb 09, 2015 8:47 pm    Post subject: Reply with quote

I can speak to the /dev/mapper problem.

Add the following line to /etc/init.d/mdev in the populate_mdev() method
Code:
dmsetup mknodes


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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Feb 09, 2015 9:48 pm    Post subject: Reply with quote

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.

xaviermiller wrote:
EDIT: http://www.gossamer-threads.com/lists/gentoo/user/270576

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
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Sun Feb 22, 2015 10:47 am    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun Feb 22, 2015 1:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47895
Location: 56N 3W

PostPosted: Sun Feb 22, 2015 1:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Sun Feb 22, 2015 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Tue Mar 03, 2015 7:54 pm    Post subject: Reply with quote

This packages need for my system?

hwids or udev-init-scipts?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Mar 03, 2015 9:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Fri Mar 13, 2015 8:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Mar 13, 2015 9:09 pm    Post subject: Reply with quote

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
Code:
USE="-udev"

best ... khay
Back to top
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Sat Mar 14, 2015 2:15 pm    Post subject: Reply with quote

khayyam

nope, but gudev is enabled.
Back to top
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Sun Jul 26, 2015 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 47895
Location: 56N 3W

PostPosted: Sun Jul 26, 2015 7:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun Jul 26, 2015 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
stephan-t
Tux's lil' helper
Tux's lil' helper


Joined: 12 May 2014
Posts: 119

PostPosted: Mon Jul 27, 2015 3:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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