This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kscd doesn't show up in device notifier when CD inserted

Tags: None
(comma "," separated)
2handband
Registered Member
Posts
304
Karma
0
OS
I'm running Chakra Linux, and found myself needing to play some audio CDs. So I installed Kscd. The only thing showing up in the device notifier is Play Audio CD with Kaffeine, so I right-clicked the notifier and chose Settings -> Device Actions -> Play Audio CD with KsCD -> Edit. I changed all the settings there to match the ones in Play Audio CD in Kaffeine. But no good; KsCD still does not show up as an option when I insert a CD. What gives?


2handband
Registered Member
Posts
304
Karma
0
OS
BTW, here's is the contents of /usr/share/apps/solid/actions/kscd-play-audiocd.desktop:
Code: Select all
[Desktop Entry]
X-KDE-Solid-Predicate=[ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Audio' ]
Type=Service
Actions=open;

[Desktop Action open]
Exec=kscd -s
Icon=kscd


Unless I misunderstand the syntax, this file should do the job.


User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you run the following, do you get any results?
Code: Select all
solid-hardware query "[ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Audio' ]"


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
2handband
Registered Member
Posts
304
Karma
0
OS
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This indicates that Solid is not detecting the device as a CD. Solid relies on underlying frameworks (HAL in 4.5 and earlier, and UDev in 4.6 and later) to provide this information.

What output do you get from "solid-hardware list"?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
2handband
Registered Member
Posts
304
Karma
0
OS
bcooksley wrote:This indicates that Solid is not detecting the device as a CD. Solid relies on underlying frameworks (HAL in 4.5 and earlier, and UDev in 4.6 and later) to provide this information.

What output do you get from "solid-hardware list"?


That seems strange to me, since the device notifier does give me the option of "Play Audio CD with Kaffeine". But anyway:
Code: Select all
[root@dhcppc0 ~]# solid-hardware list
udi = '/org/kde/solid/udev/sys/devices/LNXSYSTM:00/LNXCPU:00'
udi = '/org/kde/solid/udev/sys/devices/LNXSYSTM:00/LNXCPU:01'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:06.0/0000:02:00.0/net/eth0'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.4/0000:03:06.0/net/eth1'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.4/0000:03:07.0/sound/card0/audio'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.4/0000:03:07.0/sound/card0/dsp'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.4/0000:03:07.0/sound/card0/mixer'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.4/0000:03:07.0/sound/card0/pcmC0D0c'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.4/0000:03:07.0/sound/card0/pcmC0D0p'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.4/0000:03:07.0/sound/card0/controlC0'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS1'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS2'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS3'
udi = '/org/kde/solid/udev/sys/devices/pnp0/00:05/tty/ttyS0'
udi = '/org/kde/solid/udev/sys/devices/virtual/net/lo'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/seq'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/sequencer'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/sequencer2'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/timer'
udi = '/org/freedesktop/UDisks'
udi = '/org/freedesktop/UDisks/devices/sda2'
udi = '/org/freedesktop/UDisks/devices/sda'
udi = '/org/freedesktop/UDisks/devices/sda4'
udi = '/org/freedesktop/UDisks/devices/sr0'
udi = '/org/freedesktop/UDisks/devices/sr0:media'
udi = '/org/freedesktop/UDisks/devices/sr1'
udi = '/org/freedesktop/UDisks/devices/loop0'
udi = '/org/freedesktop/UDisks/devices/sda1'
udi = '/org/freedesktop/UPower'
udi = '/org/freedesktop/UPower/devices/mouse_4_2'
udi = '/org/kde/fstab'


User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
With the previous command, did you have a CD in the drive at the time? (the solid-hardware --query command)

Also, try comparing the Predicate in the KsCD desktop file with the Kaffeine file.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
google01103
Manager
Posts
6668
Karma
25
might your problem be that kscd is not properly configured to be used in the notifier widget now that hal is replaced with udev? I only say this because iirc Audex is no longer an option when I insert a cd, though it did in 4.5.


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
so I created a new device action that looked like this Image based on the Amarok option

and it opens the cd in KsCD as it should but my kscd seems borked so though it displays the track it doesn't play it - weird


OpenSuse Leap 42.1 x64, Plasma 5.x

2handband
Registered Member
Posts
304
Karma
0
OS
Yup, something's got to be wrong with Kscd. I wonder what else will play cds...


2handband
Registered Member
Posts
304
Karma
0
OS
Found a cure! Changed:

Code: Select all
X-KDE-Solid-Predicate=[ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Audio' ]


to:

Code: Select all
X-KDE-Solid-Predicate=OpticalDisc.availableContent & 'Audio'


As of right now I can't find any way to do this as a user with the GUI tools.


BubbaBlues
Registered Member
Posts
1
Karma
0
There is nothing wrong with KSCD. There is however something very wrong
with KDE 4.6x device notifier. It doesn't recognise any audio programs
when you insert an audio cd except amarok, which won't even play audio
CDs. No matter what you do in the settings, nothing changes!!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
@2handband: In the Device Actions edit action dialog, see the drop down below "Value name" which can be changed to "Contains" which will cause it to generate the "&".


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
gerard82
Registered Member
Posts
58
Karma
0
OS
@bcooksley

I had the same problem as secondhandband.
High time to rewrite the Help File!
Gerard.


Gentoo Linux.
Always up to date.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]