Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-08-08 01:00:13

Jerry3904
Member
Registered: 2013-11-09
Posts: 162

Does CD autoplay work?

I tried using Settings Manager > Removable Drives and Media, Multimedia tab by checking the box next to "Play audio CDs when inserted" and using the command

/usr/bin/vlc

Logged out and back in, then rebooted but still no effect. Searched this forum on "autoplay" without succes, and also did a websearch on "xfce4 autoplay."

So: 1) Does it work? 2) If yes, should I use some other command?

TIA


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

#2 2014-08-08 10:27:02

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,385

Re: Does CD autoplay work?

Yes it works here. With vlc you need to specify the source:

/usr/bin/vlc cdda:///dev/cdrom

Offline

#3 2014-08-08 12:48:51

Jerry3904
Member
Registered: 2013-11-09
Posts: 162

Re: Does CD autoplay work?

Thanks. That does not work here on a Debian Stable system, even if I shift to clementine or deadbeef (my favorite). I tried switching to /dev/sr0 but that didn't work either.

Will keep mucking around...


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

#4 2014-08-08 14:21:03

Jerry3904
Member
Registered: 2013-11-09
Posts: 162

Re: Does CD autoplay work?

One advanced MX-14 user reports the following:

Both

vlc cdda:///dev/sr0

   
and

vlc cdda:///dev/cdrom

worked on my system, but thunar had to be open for the autostart to take place. Having the thunar daemon running in the background wasn't enough. Once Thunar had been open once, subsequent cd insertions work fine.

I can confirm that, except that only /dev/sr0 works on my system and Thunar must be open each time.

Seems clear that this is not something the Xfce devs intended, since the combination of 1) the lack of directions about the command required (the pull-down menu implies that only the player needs to be designated) and 2) the hidden requirement that Thunar be open for that to operate (only Debian?) renders CD Autoplay effectively unuseable for most people.

Last edited by Jerry3904 (2014-08-08 14:57:28)


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

#5 2014-08-08 15:19:26

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,385

Re: Does CD autoplay work?

I don't have a system with a CD drive handy to test myself right now, but is thunar running in daemon mode?

ps -ef | grep -i thunar

If not, does starting thunar with:

thunar --daemon

...then closing thunar then inserting the CD make it autoplay?

From the thunar man page:

--daemon
           Do not terminate the Thunar instance when the last window is
           closed, but keep it running to speed up opening new windows later
           on. This is the default when spawning Thunar as part of the default
           Xfce session or when using D-Bus activation.

Offline

#6 2014-08-08 15:24:19

Jerry3904
Member
Registered: 2013-11-09
Posts: 162

Re: Does CD autoplay work?

Yes

$ ps -ef | grep -i thunar
gb       11164 11083  0 11:22 pts/0    00:00:00 grep -i thunar

Also in the report I quoted.


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

#7 2014-08-08 15:33:34

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,385

Re: Does CD autoplay work?

Perhaps a bug report is warranted - maybe get this fixed for the next release.

Offline

#8 2014-08-08 17:07:47

Jerry3904
Member
Registered: 2013-11-09
Posts: 162

Re: Does CD autoplay work?

Could be. What makes me hesitate is that it seems increasingly to vary by hardware/system. Another MX-14 user has now reported this, for instance:

vlc cdda:///dev/sr0 works fine for me. I don't normally use Thunar, and I think I have only opened it on this install to disable auto-mounting of removable drives. I normally have SpaceFM open, but CD autoplay works whether it is open or not.

At which point, I begin to doubt if there is anything to be done except machine-by-machine.


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

#9 2014-08-09 00:54:20

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,385

Re: Does CD autoplay work?

At which point, I begin to doubt if there is anything to be done except machine-by-machine.

Hmm. I'm back at my laptop with the cd drive and it (autoplay) actually works for me, on a fresh boot, without running thunar first. I do, however, have "Thunar --daemon" running on boot (it must be started automatically).

This laptop runs Arch linux with Xfce built from git, but Thunar is still at 1.6.3.

Offline

#10 2014-08-09 03:04:11

Rayonant
Member
Registered: 2013-01-10
Posts: 38

Re: Does CD autoplay work?

¿Maybe is a problem with Vlc? on my machine it works well with Parole using

parole --device=%d

Offline

#11 2014-08-09 11:04:07

Jerry3904
Member
Registered: 2013-11-09
Posts: 162

Re: Does CD autoplay work?

Thanks. It hasn't mattered so far which player was used, but I will look at it some more. (I don't actually ever use this myself, but a question on the MX forum got me wondering.)

But again: some indication about how to form the command--or just automatically filling it out after the player had been selected--would make this option a lot more accessible to the general user.


MX-14 (based on Debian Stable) with backported Xfce 4.10 on Acer Aspire One 722

Offline

Board footer

Powered by FluxBB