Skip to content

Commit

Permalink
feat: fixes on the default settings, as wayland becomes standard
Browse files Browse the repository at this point in the history
display_power=2
use_sdl2: True
  • Loading branch information
helgeerbe committed Nov 1, 2024
1 parent 726d0cb commit 05cae0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/picframe/config/configuration_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ viewer:
display_y: 0 # offset from top of screen (can be negative)
display_w: null # width of display surface (null->None will use max returned by hardware)
display_h: null # height of display surface
display_power: 0 # default=0. choices={0, 1, 2}, 0 will use legacy `vcgencmd`, 1 will use `xset`, 2 will use 'wlr-randr' to blank the display
display_power: 2 # default=0. choices={0, 1, 2}, 0 will use legacy `vcgencmd`, 1 will use `xset`, 2 will use 'wlr-randr' to blank the display
use_glx: False # default=False. Set to True on linux with xserver running. NB use_sdl2 might need to be False for this to work.
use_sdl2: False # default=True. pysdl2 can use display without xserver, it should be installed as a dependency of pi3d
use_sdl2: True # default=True. pysdl2 can use display without xserver, it should be installed as a dependency of pi3d
# but might need `sudo apt install libsdl2-dev` if picframe gives errors about missing sdl2

mat_images: 0.01 # default=0.01, True, automatically mat all images. False, don't automatically mat any images. Real value, auto-mat all images with aspect ratio difference > than value
Expand Down
4 changes: 2 additions & 2 deletions src/picframe/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
'display_y': 0,
'display_w': None,
'display_h': None,
'display_power': 0,
'display_power': 2,
'use_glx': False, # default=False. Set to True on linux with xserver running
'use_sdl2': False,
'use_sdl2': True,
'test_key': 'test_value',
'mat_images': True,
'mat_type': None,
Expand Down

0 comments on commit 05cae0c

Please sign in to comment.