Closed LeeBRogers closed 2 years ago
Does Solaar complain when running with libappindicator-gtk3? Please run solaar -dd
in this setup and post the output.
Does Solaar complain when running with libappindicator-gtk3? Please run
solaar -dd
in this setup and post the output.
The tray icon seems to show up when running it manually either via terminal or application menu. Those GTK errors mentioned above appear on boot/login.
Nothing seems to pop out, here's the output of solaar -dd
:
19:48:52,142 INFO [MainThread] root: language en_GB (UTF-8), translations path /usr/share/locale
19:48:52,255 INFO [MainThread] logitech_receiver.diversion: GDK Keymap set up
19:48:52,255 WARNING [MainThread] logitech_receiver.diversion: rules cannot access active process or modifier keys in Wayland
19:48:52,255 WARNING [MainThread] logitech_receiver.diversion: cannot create uinput device: "/dev/uinput" cannot be opened for writing
19:48:52,266 INFO [MainThread] solaar.upower: connected to system dbus, watching for suspend/resume events
19:48:52,283 INFO [MainThread] solaar.ui.notify: starting desktop notifications
19:48:52,314 INFO [MainThread] solaar.listener: starting receiver listening threads
19:48:52,319 INFO [MainThread] solaar.listener: receiver event add DeviceInfo(path='/dev/hidraw5', vendor_id='046D', product_id='C539', serial='', release=None, manufacturer=None, product=None, interface=2, driver='logitech-djreceiver', bus_id=3, isDevice=None)
19:48:52,319 INFO [MainThread] logitech_receiver.base: New lock 15
19:48:52,326 INFO [ReceiverListener:hidraw5] logitech_receiver.listener: started with <LightspeedReceiver(/dev/hidraw5,15)> (15)
19:48:52,326 INFO [ReceiverListener:hidraw5] solaar.listener: <LightspeedReceiver(/dev/hidraw5,15)>: notifications listener has started (15)
19:48:52,326 INFO [ReceiverListener:hidraw5] logitech_receiver.base: New lock <_ThreadedHandle(/dev/hidraw5)>
19:48:52,335 INFO [ReceiverListener:hidraw5] logitech_receiver.receiver: <LightspeedReceiver(/dev/hidraw5,15)>: receiver notifications enabled => ('wireless', 'software present')
19:48:52,339 INFO [ReceiverListener:hidraw5] solaar.listener: status_changed <LightspeedReceiver(/dev/hidraw5,15)>: present, No paired devices. (0)
19:48:52,345 INFO [ReceiverListener:hidraw5] logitech_receiver.receiver: <LightspeedReceiver(/dev/hidraw5,15)>: found new device 1 (4079)
19:48:52,345 INFO [ReceiverListener:hidraw5] logitech_receiver.base: New lock 18
19:48:52,345 INFO [ReceiverListener:hidraw5] solaar.listener: connection Notification(10,1,41,0C,327940) for <Device(1,4079,G Pro Wireless Gaming Mouse,40B217C0)> (mouse)
19:48:52,435 INFO [ReceiverListener:hidraw5] solaar.listener: status_changed <LightspeedReceiver(/dev/hidraw5,15)>: present, 1 paired device. (0)
19:48:52,481 INFO [ReceiverListener:hidraw5] solaar.listener: status_changed <Device(1,4079,G Pro Wireless Gaming Mouse,40B217C0)>: paired online, {'LINK ENCRYPTED': True, 'BATTERY LEVEL': 60, 'BATTERY STATUS': NamedInt(0, 'discharging'), 'BATTERY NEXT LEVEL': None, 'BATTERY VOLTAGE': 3920, 'BATTERY CHARGING': False, 'ERROR': None} (0)
19:48:52,566 INFO [ReceiverListener:hidraw5] logitech_receiver.status: <Device(1,4079,G Pro Wireless Gaming Mouse,40B217C0)> pushing device settings [<Setting([feature:choice] G Pro:onboard_profiles=None)>, <Setting([feature:choice] G Pro:report_rate=None)>, <Setting([feature:choice] G Pro:dpi=None)>]
19:48:52,589 ERROR [ReceiverListener:hidraw5] logitech_receiver.base: (18) device 1 error on feature request {0B2B}: 2 = invalid argument
19:48:52,589 WARNING [ReceiverListener:hidraw5] logitech_receiver.settings: report_rate: error applying value 2 so ignore it (<Device(1,4079,G Pro Wireless Gaming Mouse,40B217C0)>)
19:48:52,601 INFO [ReceiverListener:hidraw5] solaar.listener: status_changed <Device(1,4079,G Pro Wireless Gaming Mouse,40B217C0)>: paired online, {'LINK ENCRYPTED': True, 'BATTERY LEVEL': 60, 'BATTERY STATUS': NamedInt(0, 'discharging'), 'BATTERY NEXT LEVEL': None, 'BATTERY VOLTAGE': 3920, 'BATTERY CHARGING': False, 'ERROR': None} (0)
In docs/installation.md there is the comment that Solaar installation in KDE you need to have ayatanaappindicator3 installed. The wording there is confusing so improving it would be useful. What exactly did you install or remove? Do you have any suggestions on what this should read?
It may be that running Solaar at startup needs to be done carefully so that required resources are available when Solaar starts. How do you arrange for Solaar to be run at startup?
The flag --window=hide
just turns of showing the main window at startup. Running Solaar with no flags at startup should work the same, except that the Solaar main window should show up.
In docs/installation.md there is the comment that Solaar installation in KDE you need to have ayatanaappindicator3 installed. The wording there is confusing so improving it would be useful. What exactly did you install or remove? Do you have any suggestions on what this should read?
I removed libappindicator-gtk3
and installed libayatana-appindicator
prior to the discussion and the tray icons appeared on autostart. As per your instructions, I reinstalled libappindicator-gtk3
and removed the other package for debug purposes.
I have a .desktop file at /etc/xdg/autostart/solaar.desktop
. It runs fine under Ayatana AppIndicators, it fails with a GTK warning on the default libappindicator-gtk library.
I'm updating the installation documentation to say:
Solaar needs a library to interact with the system tray. The library that provides this interaction depends on the distribution and window system. If ayatana appindicator is available then it is best to have this library installed, e.g., by installing libayatana-appindicator
or gir1.2-ayatanaappindicator3-0.1
or similar, depending on distribution. Otherwise appindicator can sometimes be used, e.g., by installing libappindicator-gtk3
or gir1.2-appindicator3-0.1
or similar, depending on distribution.
Does this match your understanding of what is required?
I'm updating the installation documentation to say:
Solaar needs a library to interact with the system tray. The library that provides this interaction depends on the distribution and window system. If ayatana appindicator is available then it is best to have this library installed, e.g., by installing
libayatana-appindicator
orgir1.2-ayatanaappindicator3-0.1
or similar, depending on distribution. Otherwise appindicator can sometimes be used, e.g., by installinglibappindicator-gtk3
orgir1.2-appindicator3-0.1
or similar, depending on distribution.Does this match your understanding of what is required?
Looks clear and concise to me. It will save everyone the hassle trying to troubleshoot the tray icons not appearing without the additional libraries installed when using Wayland.
Information
Solaar version (
solaar --version
orgit describe --tags
if cloned from this repository): solaar 1.1.4rc1Distribution: Arch Linux
Kernel version (ex.
uname -srmo
):5.18.6-arch1-1
Output of
solaar show
:~/.config/solaar/config.yaml
(or~/.config/solaar/config.json
if~/.config/solaar/config.yaml
not present):Describe the bug When using the libappindicator-gtk3 library for tray icons, the icons don't appear when auto starting solaar with the
window=hide flag
in Wayland. I have removed the package and installedlibayatana-appindicator
instead which works, but the question remains as to why it's only seemingly affecting Arch Linux on the distributions tested. It fails to execute the program when logged into a new session in the DE. I note that some distros have deprivcated the libappindicator-gtk3 package in favour oflibayatana-appindicator
, so perhaps this is the way forward regarding what dependencies are shipped and used in the repos for Solaar?To Reproduce Steps to reproduce the behavior:
Install
libappindicator-gtk3
Reboot/restart DE and check
journalctl -b | grep solaar
Scroll down to
arch solaar[986]: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
See error
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
KDE Plasma 5.25.1