Development - KanoComputing/kano-settings GitHub Wiki

Dev environment

  1. Make sure you install and start Kano DevBox
  2. Install kano-settings using the icon on the desktop desktop
  3. Now you will be able to run and develop kano-settings on Kano DevBox!
  4. Open a terminal and type sudo kano-settings

Keyboard

This setting configures the keyboard given a layout and variant.

Files

set_keyboard.py: UI class
keyboard_config.py: The keyboard settings are stored in /etc/default/keyboard.
keyboard_layouts.py: List of layouts and variants per continent

Mouse

Configuration of the mouse speed: low (1), normal (default), high (10). The command to apply this change is xset m [value]

Files

set_mouse.py: UI class

Audio

Audio output can be set to Analog or HDMI using the following line amixer -c 0 cset numid=3 N in /boot/config.txt where N is 1 for analog and 2 for hdmi.

Please note that this change requires a reboot of the system to take effect.

Files

set_audio.py: UI class

Display

The resolution of the display can be configured from this setting. The command /opt/vc/bin/tvservice -m lists all available modes. The current configuration is stored in /boot/config.txt.

Files

set_display.py: UI class
screen_config.py: gets the list of supported modes and applies a selected one

Email

[This setting will be deprecated soon]

Wifi

Check the WiFi wiki page for full information.

Overclocking

Adjust the level of overclocking from this screen. The different modes are:
# Mode arm_freq core_freq sdram_freq over_voltage
# "None" "700MHz ARM, 250MHz core, 400MHz SDRAM, 0 overvolt"
# "Modest" "800MHz ARM, 300MHz core, 400MHz SDRAM, 0 overvolt"
# "Medium" "900MHz ARM, 333MHz core, 450MHz SDRAM, 2 overvolt"
# "High" "950MHz ARM, 450MHz core, 450MHz SDRAM, 6 overvolt"

In order to apply this settings the following lines need to be modified in /boot/config.txt:
"arm_freq="
"core_freq="
"sdram_freq="
"over_voltage="

Files

set_overclock.py: UI class

Account

This window lets the user modify the password or delete its own account. Also create a new account (this will be available on next boot).

Account creation and deletion is controlled by kano-init.

For changing the password we use the bash command: sudo chpasswd.

Files

accounts.py: Add and delete accounts controller
home.py: connection between account.py and password.py
password.py: UI for changing the password

Wallpaper

This window offers different wallpapers to choose from. The wallpapers are located in /usr/share/kano-desktop/wallpapers/ and should have the following naming convention: "-16-9.png", "-4-3.png" and "-1024.png". The 3 different formats needs to be included.

In order to change the wallpaper, the local .kdeskrc file in the home directory needs to be modified.

Files

set_wallpaper.py: UI class

Widgets

kano-settings comes with 2 plugins for lxpanel. For full information visit the widgets wiki page