Linux MInt 19.x Mate Sounds

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
zaileion
Level 4
Level 4
Posts: 226
Joined: Sun Jan 25, 2015 6:01 pm

Re: Linux MInt 19.x Mate Sounds

Post by zaileion »

yup it plays 1x for any of my android devices but doesn't play for my usb drives

User avatar
MrEen
Level 17
Level 17
Posts: 7740
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux MInt 19.x Mate Sounds

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

zaileion
Level 4
Level 4
Posts: 226
Joined: Sun Jan 25, 2015 6:01 pm

Re: Linux MInt 19.x Mate Sounds

Post 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

zaileion
Level 4
Level 4
Posts: 226
Joined: Sun Jan 25, 2015 6:01 pm

Re: Linux MInt 19.x Mate Sounds

Post 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

User avatar
MrEen
Level 17
Level 17
Posts: 7740
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux MInt 19.x Mate Sounds

Post 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"

User avatar
MrEen
Level 17
Level 17
Posts: 7740
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux MInt 19.x Mate Sounds

Post by MrEen »

Family time here. Be back in a while.

zaileion
Level 4
Level 4
Posts: 226
Joined: Sun Jan 25, 2015 6:01 pm

Re: Linux MInt 19.x Mate Sounds

Post 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!!

User avatar
MrEen
Level 17
Level 17
Posts: 7740
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux MInt 19.x Mate Sounds

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

Post Reply

Return to “Newbie Questions”