Re: [OpenIndiana-discuss] No sound output - no rights ?
On 8/24/23 23:28, Peter Tribble wrote: On Thu, Aug 24, 2023 at 9:21 PM Stephan Althaus < stephan.alth...@duedinghausen.eu> wrote: Hello! I have no audio output - anyone else, too ? Are you logged in on the graphical console? The way this normally works is that the login display manager will change ownership of the audio devices to whoever is logged in on the console, using logindevperm(5) via di_devperm_login() and di_devperm_logout() - there's a patch 11-login-device-permissions.patch for lightdm that actually does this for you. $ prtconf -d | grep -i audio pci1028,17b1 (pciex10de,fbc) [NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX]], instance #6 pci1028,7b1 (pciex8086,a171) [Intel Corporation CM238 HD Audio Controller], instance #5 $ sudo audioctl list-devices Password: audiohd#5 audiohd#6 $ audiotest Sound subsystem and version: SunOS Audio 4.0 (0x00040003) Platform: SunOS 5.11 illumos-a98a962ff1 i86pc /dev/sound/audiohd:5dsp: Permission denied /dev/sound/audiohd:6dsp: Permission denied *** Errors were detected *** $ ls -l /dev/sound/audiohd:5dsp lrwxrwxrwx 1 root root 49 Apr 11 2019 /dev/sound/audiohd:5dsp -> ../../devices/pci@0,0/pci1028,7b1@1f ,3:sound,dsp5 $ ls -l /devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 crw--- 1 root root 30, 81 Apr 11 2019 /devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 There's no group having rights to access the device, nor "others" - is this normal ? Regards, Stephan ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss Hello! Thanks to Udo and Peter for the insights! This morning (after reboot) the sound is back. I switched the Monitor device forth and back yesterday evening, this might be the cause of the device-files belonging to root:root. I will try that later. Thanks! Regards, Stephan ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] No sound output - no rights ?
On Thu, Aug 24, 2023 at 9:21 PM Stephan Althaus < stephan.alth...@duedinghausen.eu> wrote: > Hello! > > I have no audio output - anyone else, too ? > Are you logged in on the graphical console? The way this normally works is that the login display manager will change ownership of the audio devices to whoever is logged in on the console, using logindevperm(5) via di_devperm_login() and di_devperm_logout() - there's a patch 11-login-device-permissions.patch for lightdm that actually does this for you. > $ prtconf -d | grep -i audio > pci1028,17b1 (pciex10de,fbc) [NVIDIA Corporation GM107 High > Definition Audio Controller [GeForce 940MX]], instance #6 > pci1028,7b1 (pciex8086,a171) [Intel Corporation CM238 HD Audio > Controller], instance #5 > > $ sudo audioctl list-devices > Password: > audiohd#5 > audiohd#6 > > $ audiotest > Sound subsystem and version: SunOS Audio 4.0 (0x00040003) > Platform: SunOS 5.11 illumos-a98a962ff1 i86pc > /dev/sound/audiohd:5dsp: Permission denied > /dev/sound/audiohd:6dsp: Permission denied > > *** Errors were detected *** > > $ ls -l /dev/sound/audiohd:5dsp > lrwxrwxrwx 1 root root 49 Apr 11 2019 > /dev/sound/audiohd:5dsp -> ../../devices/pci@0,0/pci1028,7b1@1f > ,3:sound,dsp5 > > $ ls -l /devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 > crw--- 1 root root 30, 81 Apr 11 2019 > /devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 > > > There's no group having rights to access the device, nor "others" - is > this normal ? > > > Regards, > > Stephan > > > > > ___ > openindiana-discuss mailing list > openindiana-discuss@openindiana.org > https://openindiana.org/mailman/listinfo/openindiana-discuss > -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] No sound output - no rights ?
On 24/08/2023 22:20, Stephan Althaus wrote: Hello! I have no audio output - anyone else, too ? $ prtconf -d | grep -i audio pci1028,17b1 (pciex10de,fbc) [NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX]], instance #6 pci1028,7b1 (pciex8086,a171) [Intel Corporation CM238 HD Audio Controller], instance #5 $ sudo audioctl list-devices Password: audiohd#5 audiohd#6 $ audiotest Sound subsystem and version: SunOS Audio 4.0 (0x00040003) Platform: SunOS 5.11 illumos-a98a962ff1 i86pc /dev/sound/audiohd:5dsp: Permission denied /dev/sound/audiohd:6dsp: Permission denied *** Errors were detected *** $ ls -l /dev/sound/audiohd:5dsp lrwxrwxrwx 1 root root 49 Apr 11 2019 /dev/sound/audiohd:5dsp -> ../../devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 $ ls -l /devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 crw--- 1 root root 30, 81 Apr 11 2019 /devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 There's no group having rights to access the device, nor "others" - is this normal ? This is regulated in /etc/logindevperm: # # console modedevices # /dev/vt/console_user0600/dev/mouse:/dev/kbd /dev/vt/console_user0600/dev/sound/*# audio devices /dev/vt/console_user0666/dev/fbs/* # frame buffers /dev/vt/console_user0600/dev/dri/* # dri devices /dev/vt/console_user0400/dev/removable-media/dsk/* # removable media /dev/vt/console_user0400/dev/removable-media/rdsk/* # removable media /dev/vt/console_user0400/dev/hotpluggable/dsk/* # hotpluggable storage /dev/vt/console_user0400/dev/hotpluggable/rdsk/*# hotpluggable storage /dev/vt/console_user0600/dev/video[0-9]+# video devices /dev/vt/console_user0600/dev/usb/hid[0-9]+ # hid devices should have the same permission with conskbd and consms /dev/vt/console_user0600/dev/usb/[0-9a-f]+[.][0-9a-f]+/[0-9]+/* driver=scsa2usb,usb_mid,usbprn,ugen #libusb/ugen devices /dev/vt/console_user0666/dev/nvidia[0-9a-f]+# Nvidia /dev/vt/console_user0666/dev/console# workaround for defect.opensolaris.org 12133 You can try to change the mode of /dev/sound/* to 666. ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
[OpenIndiana-discuss] No sound output - no rights ?
Hello! I have no audio output - anyone else, too ? $ prtconf -d | grep -i audio pci1028,17b1 (pciex10de,fbc) [NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX]], instance #6 pci1028,7b1 (pciex8086,a171) [Intel Corporation CM238 HD Audio Controller], instance #5 $ sudo audioctl list-devices Password: audiohd#5 audiohd#6 $ audiotest Sound subsystem and version: SunOS Audio 4.0 (0x00040003) Platform: SunOS 5.11 illumos-a98a962ff1 i86pc /dev/sound/audiohd:5dsp: Permission denied /dev/sound/audiohd:6dsp: Permission denied *** Errors were detected *** $ ls -l /dev/sound/audiohd:5dsp lrwxrwxrwx 1 root root 49 Apr 11 2019 /dev/sound/audiohd:5dsp -> ../../devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 $ ls -l /devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 crw--- 1 root root 30, 81 Apr 11 2019 /devices/pci@0,0/pci1028,7b1@1f,3:sound,dsp5 There's no group having rights to access the device, nor "others" - is this normal ? Regards, Stephan ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss