Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program cannot read $DISPLAY #21

Open
xevilstar opened this issue Jun 3, 2022 · 9 comments
Open

program cannot read $DISPLAY #21

xevilstar opened this issue Jun 3, 2022 · 9 comments

Comments

@xevilstar
Copy link

/usr/share/tuxedo-backlight-control/ui.py --help
Traceback (most recent call last):
File "/usr/share/tuxedo-backlight-control/ui.py", line 358, in
init()
File "/usr/share/tuxedo-backlight-control/ui.py", line 352, in init
root = tk.Tk()
File "/usr/lib/python3.10/tkinter/init.py", line 2299, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

echo $DISPLAY
:0

@cydia2020
Copy link

I have the same issue on Ubuntu 20.04

Traceback (most recent call last):
  File "/usr/share/tuxedo-backlight-control/ui.py", line 360, in <module>
    init()
  File "/usr/share/tuxedo-backlight-control/ui.py", line 354, in init
    root = tk.Tk()
  File "/usr/lib/python3.8/tkinter/__init__.py", line 2270, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

@webketje
Copy link
Owner

@cydia2020 please read through #11 and especially see if the suggestion in this comment works for you: #11 (comment)..
I should really add a troubleshooting guide in the README.md and create a GH issue template

@xevilstar
Copy link
Author

sorry but rebooting doesn't help

@cydia2020
Copy link

sorry but rebooting doesn't help

Yup, same situation here, rebooting doesn't help.

@xevilstar
Copy link
Author

strangely enough .....

cat /sys/devices/platform/tuxedo_keyboard/input/input34/capabilities/led
0

@webketje
Copy link
Owner

@xevilstar your persistence is admirable, I'm sorry I cannot help.
The only thing I can do is look around for clues, for example at Tuxedo keyboard a lot of issues have been reported/ PR's opened over the last year:
https://github.com/tuxedocomputers/tuxedo-keyboard/issues
https://github.com/tuxedocomputers/tuxedo-keyboard/pulls

For example, this PR tuxedocomputers/tuxedo-keyboard#101 mentions incompatibility with Linux Kernel 5.13+ . FWIW I'm still on Linux kernel 5.4 (last time I tried to upgrade there were too many issues)

Regarding the path you inspected, mine is under cat /sys/devices/platform/tuxedo_keyboard/input/input18 and my "led" file also has a 0 as value, so that will not be the issue.

I don't have the time nor resources to re-install locally or test extensively on VMs.

@xevilstar
Copy link
Author

the project will die if you don't update

@webketje
Copy link
Owner

webketje commented Jul 6, 2022

Feel free to fork and propose a pull request for addressing any issues I do not have the time, expertise or resources for. Please remain civil and constructive.

@xevilstar
Copy link
Author

If I had the ability to code something out I would, I am just testing ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants