RE: sndioctl and USB HID keyboard

2020-04-21 Thread zeurkous
theo wrote: > You don't know your place. Your opinion is well-considered. --zeurkous. -- Friggin' Machines!

RE: sndioctl and USB HID keyboard

2020-04-21 Thread zeurkous
theo wrote: > wrote: > >> > usbhidaction runs as root, given /dev/uhidN permissions, it's clearly >> > not intended to run "high level" user commands. >> >> The keys, however frivolous memight find them, are clearly to apply to >> the output belonging to the terminal that the kbd is attached to. >

Re: sndioctl and USB HID keyboard

2020-04-21 Thread Theo de Raadt
You don't know your place. wrote: > Morning Theo, > > theo wrote: > > Alexandre Ratchov wrote: > >> Hi, > >> > >> mixerctl is still the appropriate tool here, sndioctl is not inteded > >> to be run as root. > >> > >> usbhidaction runs as root, given /dev/uhidN permissions, it's clearly > >>

Re: sndioctl and USB HID keyboard

2020-04-21 Thread Theo de Raadt
wrote: > > usbhidaction runs as root, given /dev/uhidN permissions, it's clearly > > not intended to run "high level" user commands. > > The keys, however frivolous memight find them, are clearly to apply to > the output belonging to the terminal that the kbd is attached to. You are welcome to

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis
Hello Alexandre, Theo, On 21/04/2020 - 00:12, Theo de Raadt wrote: Alexandre Ratchov wrote: On Tue, Apr 21, 2020 at 03:15:58AM +0200, Erling Westenvik wrote: > > > > > > I'm a bit confused now... so why the previous usbhidaction configuration > > > (which was aligned to the manpage suggestion

RE: sndioctl and USB HID keyboard

2020-04-20 Thread zeurkous
Morning Theo, theo wrote: > Alexandre Ratchov wrote: >> Hi, >> >> mixerctl is still the appropriate tool here, sndioctl is not inteded >> to be run as root. >> >> usbhidaction runs as root, given /dev/uhidN permissions, it's clearly >> not intended to run "high level" user commands. For instance

RE: sndioctl and USB HID keyboard

2020-04-20 Thread zeurkous
Morning, "Alexandre Ratchov" wrote: > Hi, > > mixerctl is still the appropriate tool here, sndioctl is not inteded > to be run as root. Oh, really? > usbhidaction runs as root, given /dev/uhidN permissions, it's clearly > not intended to run "high level" user commands. The keys, however frivol

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Theo de Raadt
Alexandre Ratchov wrote: > On Tue, Apr 21, 2020 at 03:15:58AM +0200, Erling Westenvik wrote: > > > > > > > > I'm a bit confused now... so why the previous usbhidaction configuration > > > > (which was aligned to the manpage suggestions and worked flawlessly for > > > > years) doesn't work anymor

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alexandre Ratchov
On Tue, Apr 21, 2020 at 03:15:58AM +0200, Erling Westenvik wrote: > > > > > > I'm a bit confused now... so why the previous usbhidaction configuration > > > (which was aligned to the manpage suggestions and worked flawlessly for > > > years) doesn't work anymore? > > > > Sorry, few weeks ago mixe

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Erling Westenvik
On Mon, Apr 20, 2020 at 11:07:38PM +0200, Alexandre Ratchov wrote: > On Mon, Apr 20, 2020 at 08:00:05PM +0200, Alessandro De Laurenzis wrote: > > Hello Alexandre, > > > > On 20/04/2020 - 19:50, Alexandre Ratchov wrote: > > > On Mon, Apr 20, 2020 at 07:35:03PM +0200, Alessandro De Laurenzis wrote:

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alexandre Ratchov
On Mon, Apr 20, 2020 at 08:00:05PM +0200, Alessandro De Laurenzis wrote: > Hello Alexandre, > > On 20/04/2020 - 19:50, Alexandre Ratchov wrote: > > On Mon, Apr 20, 2020 at 07:35:03PM +0200, Alessandro De Laurenzis wrote: > > > Hello Alexandre, > > > > > > Thanks for your prompt feedback. > > > >

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis
Hello Alexandre, On 20/04/2020 - 19:50, Alexandre Ratchov wrote: On Mon, Apr 20, 2020 at 07:35:03PM +0200, Alessandro De Laurenzis wrote: Hello Alexandre, Thanks for your prompt feedback. On 20/04/2020 - 18:00, Alexandre Ratchov wrote: [...] > > This is the right way of doing it except that t

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alexandre Ratchov
On Mon, Apr 20, 2020 at 07:35:03PM +0200, Alessandro De Laurenzis wrote: > Hello Alexandre, > > Thanks for your prompt feedback. > > On 20/04/2020 - 18:00, Alexandre Ratchov wrote: > [...] > > > > This is the right way of doing it except that the user-id running > > sndioctl is probably not auth

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis
Hello Benjamin, On 20/04/2020 - 17:23, Benjamin Baier wrote: [...] Have made the same adjustments here. Works good. Do you have an old usbhidaction running in background, that blocks /dev/uhid1 No, there is only one instance of usbhidaction running (I tried to reboot too, just to be sure).

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis
Hello Alexandre, Thanks for your prompt feedback. On 20/04/2020 - 18:00, Alexandre Ratchov wrote: [...] This is the right way of doing it except that the user-id running sndioctl is probably not authorized to use the server while you're using. You could try to prefix the command with "doas -u

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alexandre Ratchov
On Mon, Apr 20, 2020 at 05:07:26PM +0200, Alessandro De Laurenzis wrote: > Greetings, > > Latest -current here: > > OpenBSD theseus.atlantide.priv 6.7 GENERIC.MP#140 amd64 > > Of course, mixerctl doesn't work anymore for volume control. > > I have a Logitech wireless keyboard whose multimedia k

Re: sndioctl and USB HID keyboard

2020-04-20 Thread Benjamin Baier
On Mon, 20 Apr 2020 17:07:26 +0200 Alessandro De Laurenzis wrote: > Greetings, > > Latest -current here: > > OpenBSD theseus.atlantide.priv 6.7 GENERIC.MP#140 amd64 > > Of course, mixerctl doesn't work anymore for volume control. > > I have a Logitech wireless keyboard whose multimedia keys w

sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis
Greetings, Latest -current here: OpenBSD theseus.atlantide.priv 6.7 GENERIC.MP#140 amd64 Of course, mixerctl doesn't work anymore for volume control. I have a Logitech wireless keyboard whose multimedia keys were pretty functional in OpenBSD through usbhidaction(1): [...] Apr 20 16:54:48 th