Page 4 of 4

Re: Linux MInt 19.x Mate Sounds

Posted: Sat Nov 02, 2019 5:36 pm
by zaileion
yup it plays 1x for any of my android devices but doesn't play for my usb drives

Re: Linux MInt 19.x Mate Sounds

Posted: Sat Nov 02, 2019 5:39 pm
by MrEen
Okay. Step one complete. Now run the udevadm monitor --kernel --property --subsystem-match=usb command again, and plug in a USB drive, and we'll find something similarly unique to add for those.

Re: Linux MInt 19.x Mate Sounds

Posted: Sat Nov 02, 2019 5:49 pm
by zaileion
Ok. So this is for s SanDisk USB drive, a USB stick. Not to be confused with an external hard drive. Ill post for an external USB Hard Drive in a sec. gotta plug it in...

Output:
$ udevadm monitor --kernel --property --subsystem-match=usb
monitor will print the received events for:
KERNEL - the kernel uevent

KERNEL[15203.873685] add /devices/pci0000:00/0000:00:14.0/usb1/1-1 (usb)
ACTION=add
BUSNUM=001
DEVNAME=/dev/bus/usb/001/082
DEVNUM=082
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-1
DEVTYPE=usb_device
MAJOR=189
MINOR=81
PRODUCT=781/5530/100
SEQNUM=5556
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[15203.874142] add /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0
DEVTYPE=usb_interface
INTERFACE=8/6/80
MODALIAS=usb:v0781p5530d0100dc00dsc00dp00ic08isc06ip50in00
PRODUCT=781/5530/100
SEQNUM=5557
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[15203.875640] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0 (usb)
ACTION=bind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0
DEVTYPE=usb_interface
DRIVER=usb-storage
INTERFACE=8/6/80
MODALIAS=usb:v0781p5530d0100dc00dsc00dp00ic08isc06ip50in00
PRODUCT=781/5530/100
SEQNUM=5560
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[15203.875943] bind /devices/pci0000:00/0000:00:14.0/usb1/1-1 (usb)
ACTION=bind
BUSNUM=001
DEVNAME=/dev/bus/usb/001/082
DEVNUM=082
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-1
DEVTYPE=usb_device
DRIVER=usb
MAJOR=189
MINOR=81
PRODUCT=781/5530/100
SEQNUM=5561
SUBSYSTEM=usb
TYPE=0/0/0

Re: Linux MInt 19.x Mate Sounds

Posted: Sat Nov 02, 2019 5:52 pm
by zaileion
Here is the output for an external USB Hard Drive.

Output:
$ udevadm monitor --kernel --property --subsystem-match=usb
monitor will print the received events for:
KERNEL - the kernel uevent

KERNEL[15486.501581] add /devices/pci0000:00/0000:00:14.0/usb2/2-3 (usb)
ACTION=add
BUSNUM=002
DEVNAME=/dev/bus/usb/002/002
DEVNUM=002
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3
DEVTYPE=usb_device
MAJOR=189
MINOR=129
PRODUCT=1058/25ee/4007
SEQNUM=5594
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[15486.506115] add /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0
DEVTYPE=usb_interface
INTERFACE=8/6/80
MODALIAS=usb:v1058p25EEd4007dc00dsc00dp00ic08isc06ip50in00
PRODUCT=1058/25ee/4007
SEQNUM=5595
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[15486.506790] bind /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0 (usb)
ACTION=bind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0
DEVTYPE=usb_interface
DRIVER=usb-storage
INTERFACE=8/6/80
MODALIAS=usb:v1058p25EEd4007dc00dsc00dp00ic08isc06ip50in00
PRODUCT=1058/25ee/4007
SEQNUM=5598
SUBSYSTEM=usb
TYPE=0/0/0

KERNEL[15486.506998] bind /devices/pci0000:00/0000:00:14.0/usb2/2-3 (usb)
ACTION=bind
BUSNUM=002
DEVNAME=/dev/bus/usb/002/002
DEVNUM=002
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3
DEVTYPE=usb_device
DRIVER=usb
MAJOR=189
MINOR=129
PRODUCT=1058/25ee/4007
SEQNUM=5599
SUBSYSTEM=usb
TYPE=0/0/0

Re: Linux MInt 19.x Mate Sounds

Posted: Sat Nov 02, 2019 5:54 pm
by MrEen
Okay, I think this will work. Modify the .rules to this:

Code: Select all

ACTION=="bind", DRIVER=="usbfs", ENV{XAUTHORITY}="/home/zaileion/.Xauthority", RUN+="/usr/local/bin/99-deviceconnected.sh"
ACTION=="bind", DRIVER=="usb-storage", ENV{XAUTHORITY}="/home/zaileion/.Xauthority", RUN+="/usr/local/bin/99-deviceconnected.sh"

Re: Linux MInt 19.x Mate Sounds

Posted: Sat Nov 02, 2019 5:56 pm
by MrEen
Family time here. Be back in a while.

Re: Linux MInt 19.x Mate Sounds

Posted: Sat Nov 02, 2019 6:03 pm
by zaileion
damn dude it works! Plus i learned to how to create udev rules. You rock! Linux Mint forums have some of the best Linux support online. I have more luck here resolving issues than on any other forum.

I really hope Linux Mint will be around for a long time to come! Just a remarkable distro. Mate need some work, and 19.2 is still a little under par but Linux Mint even in the face of internal difficulties still manages to produce exceptional support and products! I just don't know how everyone manages to do it, year after year distro after distro, question after question Linux Mint manages to do what seems to be the impossible...

Absolutely superb!

Thank you MrEen! Very Much!

and...

Thank you Linux Mint for making my computer better than anyone else. Everyone that sees remarks how awesome it is!!

Re: Linux MInt 19.x Mate Sounds

Posted: Sat Nov 02, 2019 7:17 pm
by MrEen
I'm so glad everything worked out!

Like you, I also learned how to craft udev rules due to this thread. So everybody wins! :D

Take care!



I'd still like to the Cinnamon system sound applet ported to the other desktop environments.