Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Solaar udev rules are not applied
@ 2021-10-08 10:22 Meister1593
  2021-10-08 16:16 ` NeelChotai
  2021-10-12 13:22 ` [ISSUE] [CLOSED] " ahesford
  0 siblings, 2 replies; 3+ messages in thread
From: Meister1593 @ 2021-10-08 10:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2492 bytes --]

New issue by Meister1593 on void-packages repository

https://github.com/void-linux/void-packages/issues/33422

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  Void 5.13.19_1 x86_64 AuthenticAMD notuptodate rrrmFFFFF
* package:  
  Solaar-1.0.6_1

### Expected behavior
 When running program for first time, you might only see error message (example bellow) once about re-plugging your usb dongle for mouse and afterwards it shouldn't say about that, allowing detection and working with mouse properly
### Actual behavior
 When running program it always shows error message above, and you can't do much because of it.
![image](https://user-images.githubusercontent.com/7141787/136538008-1b138a22-de73-43a5-84d2-884e5152019e.png)

### Steps to reproduce the behavior
1. Install Solaar
2. Open Solaar
3. Error message appears every time

or

1. Install Solaar
2. Reload and trigger udev rules (`udevadm control --reload-rules && udevadm trigger`)
3. Open Solaar
4. Error message appears every time

### Potential clues
I thought that rules were not applied because of some issues with app itself, but looking at Solaar's archive contents (it had rules.d with rules), this is not the case.
But then i checked out where rules actually are installed in system, and they went into `/usr/share/solaar/udev-rules.d/42-logitech-unify-permissions.rules` instead of `/usr/lib/udev/rules.d/42-logitech-unify-permissions.rules`

After that i configured udev to run with debug logging (probably not needed) and tested the same device (`/dev/hidraw3`), it gave me a list of rules that it reads and there was no `/usr/share/solaar/udev-rules.d` path

Lastly, i checked maybe package had this - and it did, in [this](https://github.com/void-linux/void-packages/commit/5ff792f86eab693bbe649de9ae8864e3b6449c3c#diff-d076aad4591896aba208d138d3ba5b10b6b2a0c0311dcc2e9937f54c6f300d25) commit it had copying rules to proper path (as well as [here](https://github.com/void-linux/void-packages/blob/dd122baf86f513f326cb6d99657c12d8785bef75/srcpkgs/Solaar/template). But then at [this](https://github.com/void-linux/void-packages/blob/355c534867d1c9a9e633d15bc0e6d6b7c7e6d4c2/srcpkgs/Solaar/template) commit this has been changed and important rule copying just got deleted.
Was it intentional or just a mistake?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Solaar udev rules are not applied
  2021-10-08 10:22 [ISSUE] Solaar udev rules are not applied Meister1593
@ 2021-10-08 16:16 ` NeelChotai
  2021-10-12 13:22 ` [ISSUE] [CLOSED] " ahesford
  1 sibling, 0 replies; 3+ messages in thread
From: NeelChotai @ 2021-10-08 16:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

New comment by NeelChotai on void-packages repository

https://github.com/void-linux/void-packages/issues/33422#issuecomment-938766817

Comment:
Not sure why the udev rules were removed, they're not installed by setup.py so far as I can tell, maybe there were before. The reason they exist in `share` is probably because of https://github.com/pwr-Solaar/Solaar/blob/b3c3ad02c8f00c685b77ad85a3ac907d204d60a2/setup.py#L26

I'm opening an MR to add the udev rules back and update the version.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ISSUE] [CLOSED] Solaar udev rules are not applied
  2021-10-08 10:22 [ISSUE] Solaar udev rules are not applied Meister1593
  2021-10-08 16:16 ` NeelChotai
@ 2021-10-12 13:22 ` ahesford
  1 sibling, 0 replies; 3+ messages in thread
From: ahesford @ 2021-10-12 13:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2509 bytes --]

Closed issue by Meister1593 on void-packages repository

https://github.com/void-linux/void-packages/issues/33422

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  Void 5.13.19_1 x86_64 AuthenticAMD notuptodate rrrmFFFFF
* package:  
  Solaar-1.0.6_1

### Expected behavior
 When running program for first time, you might only see error message (example bellow) once about re-plugging your usb dongle for mouse and afterwards it shouldn't say about that, allowing detection and working with mouse properly
### Actual behavior
 When running program it always shows error message bellow, and you can't do much because of it.
![image](https://user-images.githubusercontent.com/7141787/136538008-1b138a22-de73-43a5-84d2-884e5152019e.png)

### Steps to reproduce the behavior
1. Install Solaar
2. Open Solaar
3. Error message appears every time

or

1. Install Solaar
2. Reload and trigger udev rules (`udevadm control --reload-rules && udevadm trigger`)
3. Open Solaar
4. Error message appears every time

### Potential clues
I thought that rules were not applied because of some issues with app itself, but looking at Solaar's archive contents (it had rules.d with rules), this is not the case.
But then i checked out where rules actually are installed in system, and they went into `/usr/share/solaar/udev-rules.d/42-logitech-unify-permissions.rules` instead of `/usr/lib/udev/rules.d/42-logitech-unify-permissions.rules`

After that i configured udev to run with debug logging (probably not needed) and tested with udevadm the same device (`/dev/hidraw3`), it gave me a list of rules that it reads and there was no `/usr/share/solaar/udev-rules.d` path

Lastly, i checked maybe package had this - and it did, in [this](https://github.com/void-linux/void-packages/commit/5ff792f86eab693bbe649de9ae8864e3b6449c3c#diff-d076aad4591896aba208d138d3ba5b10b6b2a0c0311dcc2e9937f54c6f300d25) commit it had copying rules to proper path (as well as [here](https://github.com/void-linux/void-packages/blob/dd122baf86f513f326cb6d99657c12d8785bef75/srcpkgs/Solaar/template). But then at [this](https://github.com/void-linux/void-packages/blob/c33c5bc603b00c75e936e72300642d6fb84dcbdd/srcpkgs/Solaar/template) commit this has been changed and important rule copying just got deleted.
Was it intentional or just a mistake?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-12 13:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 10:22 [ISSUE] Solaar udev rules are not applied Meister1593
2021-10-08 16:16 ` NeelChotai
2021-10-12 13:22 ` [ISSUE] [CLOSED] " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).