Closed piratenpanda closed 8 months ago
Using the plugdev group is no longer recommended. Instead the udev rule manipulates user-level permissions on /dev/hidrawN nodes. Going with the older mechanism may cause problems.
I cloned the repo and used the udev file from there so this was the way to go? Anyway, after putting the file the bolt receiver vanished for non-root users.
Yes, this was the way to go. But after moving the udev file you have to both reload the udev rules and remove and reinsert the receiver.
The error in solaar show
needs to be investigated. Can you provide the output of solaar -ddd show
?
Here you go https://pastebin.com/c0ifpxDa
Ok diversion works as soon as I unlock the setting. before it does not after a reload of solaar
When you start Solaar it should push all your settings to all your devices. What you probably need to do to see that this is working for you is to quit out of Solaar, then turn your keyboard off and on again (to clear its internal settings), and then start Solaar. The key should then be diverted. If it is not, then do this all again except run Solaar as solaar -ddd
and post the result.
I have a fix for the crash in solaar show
but this does not affect anything else, I hope, so I'll put off creating a PR for it until we can figure out whether there is a but in diversions.
If it is not, then do this all again except run Solaar as
solaar -ddd
and post the result.
Here's the output https://pastebin.com/sGUgwBbZ At the end I'm unlocking the diversion setting and it works again. Before it does not. Yet in the dropdown if I select Snipping Tool solaar knows the key is diverted
Now it's even losing the function while solaar is running. Very strange
I'm now suspecting that the error shown up in solaar show
could be responsible. There is a delay of about 8 seconds in setting up the Keys and until this setup is completed the key diversion is not active. The error could be terminating part of Solaar's setup process and is not continued until some user input causes Solaar to try the setup again, in a different manner. When the device becomes active after going into power-saving mode this setup has to be repeated, and may be failing again until there is user input into Solaar.
EDIT: This is pretty much confirmed as going from ignore to unlocked state for a setting causes Solaar to update the device for that setting.
The way to check for this is to install the patch. See below for more.
Here is a summary of bits of the log you provided.
PR #2353 may fix your problem. Clone it and run bin/solaar
from the download directory. If the problem is not fixed, run bin/solaar -ddd
. Then wait for several seconds, press the diverted key, wait for several seconds, unlock and relock key diversion, wait for several seconds, and then press the diverted key again. Post the output.
To clone and use Solar from its GitHub repository
git clone https://github.com/pwr-Solaar/Solaar.git
cd Solaar
Run Solaar as bin/solaar from this directory.
To run PR #2353, first clone Solaar if you have not already done so and cd to the clone directory. The first time you download the pull request, fetch it into a new branch and checkout that branch, as in:
git fetch origin pull/2353/head:pull_2353
git checkout pull_2353
To download a new version of the pull request, fetch it and then set your pull branch to the new fetch, as in:
git checkout pull_2353
git fetch origin pull/2353/head
git reset --hard FETCH_HEAD
Seems to work fine. Solaar show now works properly and Snipping tool diversion and screenshot tool works right after starting solaar. Thank you!
Is this a solaar issue that the snipping tool key is recognized as "S" when the device is in powersave and the rules divert it to the Print Screen key when it wakes up or is this a device limitation?
If the device is in power-save mode then the diversion will be forgotten. If the device is woken up by pressing the snipping tool key Solaar does not (currently?) have a chance to divert the key before the device sends it. There is some Logitech information on something that might address this issue but attempts to implement it in Solaar have not worked (so far).
If you are interested in having this fixed some testing of code changes would be helpful. The best way to proceed would be to open an enhancement request.
will do, thanks
I'm using Solaar 1.1.11 on latest Arch (kernel 6.7.6) with a Logitech MX Keys S keyboard. I'm diverting the snipping tool so that it is recognized as "Print Screen" to get access to the screenshot tool. This works fine when setting it up. I also put the desktop file to the autostart folder so solaar runs on start-up.
But after reboot the key does nothing again. Diversion setting for the snipping tool is saved but "Print Screen" only works after unlocking, selecting the key and re-locking the diversion settings again.
I'm not using the udev rules as the Bolt receiver is invisible to my normal user then even though I created a plugdev group and put my user there. I'm a noob and the group could be named differently under arch though.
I read the known issues but don't think my problem is listed there. But I totally believe this could be user error so I'm sorry if I'm doing something stupid.
solaar show:
~/.config/solaar/config.yaml
(or~/.config/solaar/config.json
if~/.config/solaar/config.yaml
not present):