Search found 219 matches

by zaileion
Sat Nov 02, 2019 6:03 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

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...
by zaileion
Sat Nov 02, 2019 5:52 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

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/bu...
by zaileion
Sat Nov 02, 2019 5:49 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

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 kern...
by zaileion
Sat Nov 02, 2019 5:36 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

yup it plays 1x for any of my android devices but doesn't play for my usb drives
by zaileion
Sat Nov 02, 2019 5:23 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

So if i plug a usb drive in it plays the audio file about 15 times in a row...
by zaileion
Sat Nov 02, 2019 5:19 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

Its a lot... The phone requires me to click allow so it connects, then conects again after I touch allow on the phone. must be some kind of new android security thing... here is the output: $ udevadm monitor --kernel --property --subsystematch=usb monitor will print the received events for: KERNEL -...
by zaileion
Sat Nov 02, 2019 5:04 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

I'm struggling to figure out why it's playing 3 times. Are there 3 devices connected via USB when this is happening? Maybe we can find another thing to add to the .rules files to help eliminate keyboards, mice, etc. if so. Maybe this for the .rules file will help: ACTION=="add", SUBSYSTEM=="block",...
by zaileion
Sat Nov 02, 2019 5:03 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

single USB device in a usb port. its a laptop.. I did have 2 trying different devices and different usb ports but have since disconnected the extra device. I will change the .rules and let you know.
by zaileion
Sat Nov 02, 2019 4:58 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

This plays the file 2 times...

Oh, and reboots are not required... Now that its working, just change the files and save and bada bing it works...
by zaileion
Sat Nov 02, 2019 4:56 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

This works but plays the file 3 times...
by zaileion
Sat Nov 02, 2019 4:52 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

The "proper" method, as I understand it, would be to have the .rules file look like this: ACTION=="add", ENV{XAUTHORITY}="/home/zaileion/.Xauthority", RUN+="/usr/local/bin/99-deviceconnected.sh" Then change the .sh to just the hashbang and the aplay line and test if it still works. change what .sh?...
by zaileion
Sat Nov 02, 2019 4:51 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

ok. SO i changed it to this

Code: Select all

ACTION=="add", ENV{XAUTHORITY}="/home/zaileion/.Xauthority", RUN+="/usr/local/bin/99-deviceconnected.sh"
and it plays the file 3x again
by zaileion
Sat Nov 02, 2019 4:49 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

So I changed it to this and now it only plays the audio file 2x...
by zaileion
Sat Nov 02, 2019 4:44 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

MrEen wrote:
Sat Nov 02, 2019 4:33 pm
Ha, I just found this in one of my open tabs:

Code: Select all

ENV{XAUTHORITY}="/home/username/.Xauthority"
Looks like the env can/should be set in the .rules file. I didn't search that properly, and just got lucky in finding it.
So where do i add this?

These are my current files
by zaileion
Sat Nov 02, 2019 4:42 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

it plays everything 3x.. Is there a way to get it to play the .wav file only 1x?
by zaileion
Sat Nov 02, 2019 4:42 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

delete, duplicate...
by zaileion
Sat Nov 02, 2019 4:32 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

Thank you very much!!! I appreciate your effort!!

It is an excellent workaround!
by zaileion
Sat Nov 02, 2019 4:11 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

HOLY SMOKES!!!

That worked!!

It said front center 3 times in a row!

I used this

Code: Select all

#!/bin/bash
XAUTHORITY="/home/zaileion/.Xauthority"
XDG_RUNTIME_DIR="/run/user/1000"
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
aplay /usr/share/sounds/alsa/Front_Center.wav
by zaileion
Sat Nov 02, 2019 3:02 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

I booted a Live USB of Cinnamon and the funniest thing... it has the sound for device connection / disconnection... and it has a valid sound file that plays a sound... but... when i connect a device it doesn't play... seems like its broken across all Ubuntu based distros... Edit. I was wrong. It doe...
by zaileion
Sat Nov 02, 2019 2:41 pm
Forum: Newbie Questions
Topic: Linux MInt 19.x Mate Sounds
Replies: 67
Views: 1632

Re: Linux MInt 19.x Mate Sounds

So i live booted Ubuntu Live USB and connected a tablet to it. It did not make any sound but did show a notification that a device was connected. Where as Linux Mint Mate used to have awesome notifications in the top right corner but does not show them any more. I wish it did... I was also able to g...

Go to advanced search