Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions WHITELIST
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ kano.me
amazonaws.com
cloudinary.com

#help centre
kano.zendesk.com

# Updater
raspbian.org
raspberrypi.org
raspbian.mirror.uk.sargasso.net
pypi.python.org
repo-mirror.kano.me.s3.amazonaws.com

# Feedback form
docs.google.com
Expand Down
14 changes: 7 additions & 7 deletions bin/kano-settings
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env python
#!/usr/bin/kano-splash loader-animation /usr/bin/env python

# kano-settings
#
# Copyright (C) 2014-2015 Kano Computing Ltd.
# Copyright (C) 2014-2017 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# Kano Settings executable
#


"""
launches the application Terminal Quest at different points in the story
Kano Settings is a simple application to change configurations on Raspberry Pi and Kano OS

Usage:
kano-settings [--plug=<socket-id>] [--id=<screen-id>|--label=<screen-label>|<screen>] [--onescreen]
Expand All @@ -20,9 +20,9 @@ Options:
-l, --label=<screen-label> Launch on the right screen based on the label
-i, --id=<screen-id> Launch on the right screen based on the number
-o, --onescreen Close kano-settings after launching one application

"""


import os
import sys
import docopt
Expand Down Expand Up @@ -61,8 +61,8 @@ def main(plug=False, socket_id=0, screen_id=None, screen_label=None,


if __name__ == "__main__":

if os.environ['LOGNAME'] != 'root':
if os.environ.get('LOGNAME', '') != 'root':
os.system("kano-stop-splash")
exit("Error: Settings must be executed with root privileges")

args = docopt.docopt(__doc__)
Expand Down
10 changes: 10 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
kano-settings (4.0.5-0) unstable; urgency=low

* Changes for Kano OS 3.15.0:
* Fixed long delay when going into the Notifications menu
* Disabled hdmi_drive config option when going into Safe Mode
* Add splash animation for Settings app

-- Team Kano <dev@kano.me> Tue, 19 Dec 2017 18:28:00 +0100

kano-settings (4.0.4-0) unstable; urgency=low

* Changes for Kano OS 3.14.0:
Expand All @@ -8,6 +17,7 @@ kano-settings (4.0.4-0) unstable; urgency=low
* Added sentinel file on /boot partition to use custom config.txt settings
* Write /boot/cpuid.txt
* Ensure that the LightDM configuration exists on boot and regenerate if needed
* Add kano zendesk to the parental control whitelist.

-- Team Kano <dev@kano.me> Tue, 5 Dec 2017 17:22:00 +0100

Expand Down
4 changes: 2 additions & 2 deletions kano_settings/set_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def _add_led_speaker_checkbox(self):
from kano_peripherals.pi_hat.driver.high_level import \
get_pihat_interface

speaker_led_api = get_speakerleds_interface()
speaker_led_api = get_speakerleds_interface(retry_count=0)
if speaker_led_api: # can be None
is_led_speaker_plugged = speaker_led_api.detect()

pi_hat_api = get_pihat_interface()
pi_hat_api = get_pihat_interface(retry_count=0)
if pi_hat_api: # can be None
is_pi_hat_plugged = pi_hat_api.detect()

Expand Down
10 changes: 8 additions & 2 deletions kano_settings/system/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,14 @@ def set_safeboot_mode():
set_screen_value('hdmi_force_hotplug', 1)
set_screen_value('config_hdmi_boost', 4)

set_screen_value('hdmi_group', 2)
set_screen_value('hdmi_mode', 16)
set_config_value('hdmi_group', None)
set_config_value('hdmi_mode', None)

set_screen_value('hdmi_group', None)
set_screen_value('hdmi_mode', None)

set_screen_value('hdmi_drive', None)
set_config_value('hdmi_drive', None)

set_screen_value('disable_overscan', 1)
set_screen_value('overscan_left', 0)
Expand Down