appart from the owner, the .sh should have X permission that also makes it get stuck if its not there
cpi@clockworkpi:~$ cd apps/launcher
cpi@clockworkpi:~/apps/launcher$ git pull
Already up-to-date.
What next? Is it safe to just switch off the gameshell by the power button?
sudo reboot
is the safest option
Thanks! Rebooted, but after it I see the same “Loading…” screen again without any progress.
cat ~/.bashrc
cpi@clockworkpi:~/apps/launcher$ cat ~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
if [ -f /tmp/autologin ]
then
rm -f /tmp/autologin
mpd ~/.mpd.conf
startx -- -nocursor > /dev/null 2>&1
fi
If my guess is right
you need to edit ~/.bashrc
change the bottom part
and
mv ~/apps/launcher ~/
to move launcher out of ~/apps
then reboot
Deeply sorry for these inconveniences, we didn’t design them well enough in the beginning.
Changed a lot
Done, but after reboot I still see the “Loading…” screen.
My~/.bashrc
:
cpi@clockworkpi:~$ cat ~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
if [ -f ~/launcher/.cpirc ]; then
. ~/launcher/.cpirc
fi
did you move the launcher out of ~/apps?
mv ~/apps/launcher ~/
Yes, I did:
cpi@clockworkpi:~$ ls -l
total 16
drwxr-xr-x 3 cpi cpi 4096 Feb 11 00:38 apps
drwxr-xr-x 7 cpi cpi 4096 Aug 22 00:34 games
drwxr-xr-x 8 cpi cpi 4096 Feb 10 22:35 launcher
drwxr-xr-x 2 cpi cpi 4096 Jun 2 2018 music
try
cat /tmp/x.log
paste the results here
cpi@clockworkpi:~$ cat /tmp/x.log
X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.0-4-armmp-lpae armv7l Debian
Current Operating System: Linux clockworkpi 4.14.2-clockworkpi-cpi3-g016f063 #2 SMP Fri Jun 1 03:03:30 UTC 2018 armv7l
Kernel command line: console=ttyS0,115200n8 earlyprintk no_console_suspend root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=/sbin/init noinitrd panic=10
Build Date: 16 October 2017 09:48:39AM
xorg-server 2:1.19.2-1+deb9u2 (https://www.debian.org/support)
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/cpi/.local/share/xorg/Xorg.0.log", Time: Mon Feb 11 00:53:17 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/home/cpi/launcher/sys.py/gsnotify
org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
Discharging 0
wifi is connected
37
state
dbus.UInt32(1L)
Trash:
['wireless', 'Kagero']
Traceback (most recent call last):
File "run.py", line 600, in <module>
big_loop()
File "run.py", line 509, in big_loop
main_screen.ReadTheDirIntoPages("../Menu",0,None)
File "/home/cpi/launcher/sys.py/UI/main_screen.py", line 463, in ReadTheDirIntoPages
self.ReadTheDirIntoPages(_dir+"/"+i, pglevel+1 ,self._Pages[ len(self._Pages) -1])
File "/home/cpi/launcher/sys.py/UI/main_screen.py", line 494, in ReadTheDirIntoPages
iconitem._CmdPath.Init(self)
File "../Menu/GameShell/10_Settings/__init__.py", line 20, in Init
pages.InitListPage(main_screen)
File "../Menu/GameShell/10_Settings/pages.py", line 13, in InitListPage
myvars.ListPage.Init()
File "../Menu/GameShell/10_Settings/list_page.py", line 97, in Init
li._LinkObj.Init(self._Screen)
File "/home/cpi/launcher/Menu/GameShell/10_Settings/Bluetooth/__init__.py", line 812, in Init
OBJ.Init(main_screen)
File "/home/cpi/launcher/Menu/GameShell/10_Settings/Bluetooth/__init__.py", line 802, in Init
self.RegisterMyAgent()
File "/home/cpi/launcher/Menu/GameShell/10_Settings/Bluetooth/__init__.py", line 766, in RegisterMyAgent
obj = bus.get_object(BUS_NAME, "/org/bluez");
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
ok ,now see the problem is bluetooth
try
sudo apt-get install bluez
mkdir ~/apps/Menu
reboot
and maybe you can have full bluetooth function follow the wiki
otherwise, dont go into bluetooth settings in launcher, it will block you a couple seconds
If you don’t have a lot of user data and games, it’s also an option to refresh a new OS image, pure advice
Still no luck
cpi@clockworkpi:~$ sudo apt-get install bluez
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
pulseaudio-module-bluetooth
The following NEW packages will be installed:
bluez
0 upgraded, 1 newly installed, 0 to remove and 63 not upgraded.
Need to get 811 kB of archives.
After this operation, 2978 kB of additional disk space will be used.
Get:1 http://debian-mirror.sakura.ne.jp/debian stretch/main armhf bluez armhf 5.43-2+deb9u1 [811 kB]
Fetched 811 kB in 0s (950 kB/s)
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "ru_RU.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package bluez.
(Reading database ... 79641 files and directories currently installed.)
Preparing to unpack .../bluez_5.43-2+deb9u1_armhf.deb ...
Unpacking bluez (5.43-2+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for dbus (1.10.24-0+deb9u1) ...
Setting up bluez (5.43-2+deb9u1) ...
Created symlink /etc/systemd/system/dbus-org.bluez.service → /lib/systemd/system/bluetooth.service.
Created symlink /etc/systemd/system/bluetooth.target.wants/bluetooth.service → /lib/systemd/system/bluetooth.service.
Processing triggers for dbus (1.10.24-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
cpi@clockworkpi:~$ mkdir ~/apps/Menu
cpi@clockworkpi:~$ sudo reboot
x.log:
cpi@clockworkpi:~$ cat /tmp/x.log
X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.0-4-armmp-lpae armv7l Debian
Current Operating System: Linux clockworkpi 4.14.2-clockworkpi-cpi3-g016f063 #2 SMP Fri Jun 1 03:03:30 UTC 2018 armv7l
Kernel command line: console=ttyS0,115200n8 earlyprintk no_console_suspend root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=/sbin/init noinitrd panic=10
Build Date: 16 October 2017 09:48:39AM
xorg-server 2:1.19.2-1+deb9u2 (https://www.debian.org/support)
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/cpi/.local/share/xorg/Xorg.0.log", Time: Mon Feb 11 01:42:30 2019
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/home/cpi/launcher/sys.py/gsnotify
1280
4
21
x11info: 12582919
org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out
Discharging 1
('CheckBluetooth:no bluetooth', (0, ''))
wifi is connected
52
state
dbus.UInt32(2L)
Trash:
['192.168.100.8', 'Kagero', '52', '1', '12 Mb/s']
Traceback (most recent call last):
File "run.py", line 600, in <module>
big_loop()
File "run.py", line 509, in big_loop
main_screen.ReadTheDirIntoPages("../Menu",0,None)
File "/home/cpi/launcher/sys.py/UI/main_screen.py", line 463, in ReadTheDirIntoPages
self.ReadTheDirIntoPages(_dir+"/"+i, pglevel+1 ,self._Pages[ len(self._Pages) -1])
File "/home/cpi/launcher/sys.py/UI/main_screen.py", line 494, in ReadTheDirIntoPages
iconitem._CmdPath.Init(self)
File "../Menu/GameShell/10_Settings/__init__.py", line 20, in Init
pages.InitListPage(main_screen)
File "../Menu/GameShell/10_Settings/pages.py", line 13, in InitListPage
myvars.ListPage.Init()
File "../Menu/GameShell/10_Settings/list_page.py", line 97, in Init
li._LinkObj.Init(self._Screen)
File "/home/cpi/launcher/Menu/GameShell/10_Settings/Bluetooth/__init__.py", line 812, in Init
OBJ.Init(main_screen)
File "/home/cpi/launcher/Menu/GameShell/10_Settings/Bluetooth/__init__.py", line 802, in Init
self.RegisterMyAgent()
File "/home/cpi/launcher/Menu/GameShell/10_Settings/Bluetooth/__init__.py", line 766, in RegisterMyAgent
obj = bus.get_object(BUS_NAME, "/org/bluez");
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ok I see
still the bluetooth problem,because you did not setup the bluetooth
I will write a new function tomorrow to disable the bluetooth ,here is the midnight right now
so wait for me
Is there a way to save my GBA games and saves if I decide to totally reinstall the OS? (maybe it’s easier than fixing Bluetooth )
yes
just move out the ~/games and ~/apps/emulators out to anywhere but GS
then reflash the sd card
then re-copy ~/games and ~/apps/emulators into new system
Hello there, I’m pretty new to this ! I just read the thread and tried many of your ideas, but I’m still stuck at loading. It looks like there’s a problem with X. Here’s my X log :
Can someone help me or give me some advices ? Thanks a lot !
Joe