KlipperScreen icon indicating copy to clipboard operation
KlipperScreen copied to clipboard

[BUG] Wifi Network not listed

Open erwann17 opened this issue 1 year ago • 19 comments

What happened?

Hello I have a problem with Network Screen on Clipper Screen. When I open it, I don't see any wifi network appearing, whereas when I run nmtui I can see my network

image

What did you expect to happen instead?

I would like to see my wifi connection

How to reproduce this bug?

I have a problem with Network Screen on Clipper Screen. When I open it, I don't see any wifi network appearing, whereas when I run nmtui I can see my network

Additional information:

No response

Log output

klippy log.zip

erwann17 avatar Jun 13 '24 15:06 erwann17

Try to re-install klipper screen using tool named with "Kiauh" it will ask you using network manager during install select "yes"

technical50 avatar Jun 17 '24 09:06 technical50

Hello I reinstalled klipper, before installing klipperscreen via kihau I can see my wifi network and once klipper screen is installed I don't see it anymore following the last update

erwann17 avatar Jun 17 '24 09:06 erwann17

image I fount the root cause of the issue. It's mainly caused by the privilege of network manager,update to the latest version and reinstall by kiah can solve it. But if it's still not work , try to fix it by yourself by modify the pkla files of your system. In the meanwhile of installing by kiah, it creates two pkla in direction "/etc/polkit-1/localauthority/50-local.d/" "org.freedesktop.NetworkManager.*" is to give the privileges of network. image

you can try to add "org.freedesktop.NetworkManager.*" to the two files( usually needed). Last try "nmcli general permissions" to show the permissions of the current user, if all the permission valus is "YES", all the problems resolved! Before: image After: image

cuihuir avatar Jun 17 '24 09:06 cuihuir

Hello I reinstalled klipper, before installing klipperscreen via kihau I can see my wifi network and once klipper screen is installed I don't see it anymore following the last update

https://github.com/KlipperScreen/KlipperScreen/issues/1402#issuecomment-2172922686

cuihuir avatar Jun 17 '24 09:06 cuihuir

thank you, I'll try this

erwann17 avatar Jun 17 '24 09:06 erwann17

i don't have acces to "/etc/polkit-1/localauthority/50-local.d/"

erwann17 avatar Jun 17 '24 10:06 erwann17

try "sudo "

cuihuir avatar Jun 17 '24 10:06 cuihuir

image

erwann17 avatar Jun 17 '24 10:06 erwann17

emmm... sudo is the command to level up privilege temporary to root, so need a real command after sudo. like sudo cd /x/x/x etc...

cuihuir avatar Jun 17 '24 10:06 cuihuir

yes I know but the system tells me that I don't have permission to access the file

erwann17 avatar Jun 17 '24 10:06 erwann17

sorry I'm starting with linux and I don't master all the basics

erwann17 avatar Jun 17 '24 10:06 erwann17

I did nmcli general permissions

Here are the results even though I didn't touch anything

image

erwann17 avatar Jun 17 '24 10:06 erwann17

And does the wifi scaning work good?

cuihuir avatar Jun 17 '24 10:06 cuihuir

the wifi scan runs continuously but doesn't show me anything

erwann17 avatar Jun 17 '24 10:06 erwann17

logfile of klipper are not valid for klipperscreen

alfrix avatar Jun 21 '24 02:06 alfrix

Hello, I'm an automated bot.

Please attach a log file to this issue as it is required to properly diagnose the problem. 


Logs help verify versions, inspect for errors, prevent duplicate reports, etc. 


If you don't know how to grab the log file please refer to the documentation: 


https://klipperscreen.readthedocs.io/en/latest/Troubleshooting/ 


Thank you!

github-actions[bot] avatar Jun 21 '24 02:06 github-actions[bot]

looking at the logs your network is marked as "unavailable", and that may prevent ks from working properly, made some changes(3d75372) to catch the error and at least throw a popup, and a request reload, it's unknown to me if the condition is transitory or not, test after the changes

alfrix avatar Jun 21 '24 20:06 alfrix

Hello

No change except for a message when searching

unexepted error: Scanning not allowed while unavailable

erwann17 avatar Jun 22 '24 08:06 erwann17

from what i can gather the "unavailable" status can be caused by many things, the most common would be invalid permissions as cuihuir mentioned, or conflicting services (like having wpa_supplicant running), none of the cases point to a klipperscreen issue, ks will only work if networkmanager works (try with nmcli or other nmtui) so there is no fix from the application itself, this needs the os needs to be configured to work with nm or it will not work

alfrix avatar Jul 20 '24 20:07 alfrix

As there is everything ok with an older version of klipperscreen and the issue only occures after the update it is very likely that the issue is caused by klipperscreen

SurfSound avatar Aug 31 '24 13:08 SurfSound