whenever i try to run a program that uses pygame to display visuals, i get an error message, i have looked around forums for a while but havnt found aything related to this issue and REPl.
xset: unable to open display ":0" xset: unable to open display ":0" Keyboard Control: auto repeat: on key click percent: 0 LEDmask: 00000000 XKB indicators: 00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off 03: Shift Lock: off 04: Group 2: off 05: Mouse Keys: off auto repeat delay: 660 repeat rate: 25 auto repeating keys: 00feffffdffffbbf fadfffffffdfe5ef ffffffffffffffff ffffffffffffffff bell percent: 50 bell pitch: 400 bell duration: 100 Pointer Control: acceleration: 2/1 threshold: 4 Screen Saver: prefer blanking: yes allow exposures: yes timeout: 600 cycle: 600 Colors: default colormap: 0x20 BlackPixel: 0x0 WhitePixel: 0xffffff Font Path: /usr/share/fonts/X11/misc,built-ins DPMS (Energy Star): Display is not capable of DPMS nohup: ignoring input and appending output to 'nohup.out' nohup: appending output to 'nohup.out' pygame 1.9.5 Hello from the pygame community. https://www.pygame.org/contribute.html ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
Those errors are standard. They happen to all pygame repls. Was there any actual error apart from that?
btw you have to use backticks (`) for code (markdown).
Please upvote if this helps :)
Here is the link to my code: https://repl.it/@SangeetS/SimpleUI
The misbehaving code is under SalutonFrame.java
As y'all said before, the "Display is not capable of DPMS" error doesn't mean anything, but for some reason, it doesn't work. It is supposed to create an applet that only names itself 'All Me,' but the output is just the console saying, 'Hello World' and the DPMS error. Please HEELP!!!
btw: this is in java