Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] Black screen and no ssh after prolonged inactivity
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Black screen and no ssh after prolonged inactivity
29th Sep, 2014, 05:27 AM
Post: #1
GDIT Offline
Registered
Posts: 5
Joined: Sep 2014
Reputation: 0
Black screen and no ssh after prolonged inactivity
I have two distinct problems which may or may not be related. I have installed the latest Xbian on my RPi, which I want to be able to leave on at all times.

First problem: When the screensaver (dim) activates, moving the mouse or clicking the keyboard causes the screen to go black and stay that way. Neither is able to wake it up and the only solution is to ssh into it and restart the XBMC service.

Second problem: After an even longer period of activity (not sure by how much, but definitely longer), the RPi is unable to be accessed through ssh either. The light on the WiFi adapter flashes as though showing activity, but attempting to ssh inevitably results in a network timeout. The only remedy to this is to forcibly unplug the pi and plug it back, obviously not the most elegant solution.

What can I do fix this issues?
Find all posts by this user
Quote this message in a reply
29th Sep, 2014, 07:40 AM
Post: #2
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: Black screen and no ssh after prolonged inactivity
Which version, which pi, what power supply...

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
1st Oct, 2014, 01:23 AM
Post: #3
GDIT Offline
Registered
Posts: 5
Joined: Sep 2014
Reputation: 0
RE: Black screen and no ssh after prolonged inactivity
(29th Sep, 2014 07:40 AM)f1vefour Wrote:  Which version, which pi, what power supply...

XBian v1.0B2

RPi Model B Revision 2.0, 512 MB RAM 000d

Power supply is a generic USB to micro USB cable rated at 22AWG 300V plugged in to the 2A port on an Antec quad port USB charging station (it is the only thing plugged in to the Antec).
Find all posts by this user
Quote this message in a reply
1st Oct, 2014, 04:41 AM
Post: #4
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: Black screen and no ssh after prolonged inactivity
Have you tried updating the Pi? Everything else seems to be in order.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
2nd Oct, 2014, 04:00 AM
Post: #5
GDIT Offline
Registered
Posts: 5
Joined: Sep 2014
Reputation: 0
RE: Black screen and no ssh after prolonged inactivity
(1st Oct, 2014 04:41 AM)f1vefour Wrote:  Have you tried updating the Pi? Everything else seems to be in order.

(After running apt-get update)
Code:
sudo apt-get upgrade -y > out.txt

out.txt (Click to View)
Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
xbian-package-config-shell xbian-package-config-xbmc xbian-package-firmware
xbian-package-initramfs-tools xbian-package-kernel
xbian-package-upstart-xbmc-bridge xbian-package-usbmount xbian-package-xbmc
xbian-package-xbmc-scripts xbian-update
The following packages will be upgraded:
libpython2.7 python2.7 python2.7-minimal
Create a snapshot of '/tmp/btrfs-snap/root/@' in '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-10-01-1753'
Transaction commit: none (default)
Delete subvolume '/tmp/btrfs-snap/root/@last_good_known'
Create a snapshot of '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-10-01-1753' in '/tmp/btrfs-snap/root/@last_good_known'
Transaction commit: none (default)
Delete subvolume '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-09-23-1621'
@btrfs-auto-snap_apt-run-2014-10-01-1753, 1 created snapshots, 1 destroyed snapshots, 0 warnings.
3 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Need to get 0 B/5,438 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 34983 files and directories currently installed.)
Preparing to replace python2.7-minimal 2.7.3-6 (using .../python2.7-minimal_2.7.3-6+deb7u2_armhf.deb) ...
Unpacking replacement python2.7-minimal ...
dpkg: error processing /var/cache/apt/archives/python2.7-minimal_2.7.3-6+deb7u2_armhf.deb (--unpack):
trying to overwrite '/usr/lib/python2.7/lib-dynload/_hashlib.so', which is also in package python2.7 2.7.3-6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/python2.7-minimal_2.7.3-6+deb7u2_armhf.deb
Find all posts by this user
Quote this message in a reply
2nd Oct, 2014, 05:21 AM
Post: #6
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: Black screen and no ssh after prolonged inactivity
Try:

Terminal

sudo apt-get install xbian-package-config-shell xbian-package-config-xbmc xbian-package-firmware
xbian-package-initramfs-tools xbian-package-kernel
xbian-package-upstart-xbmc-bridge xbian-package-usbmount xbian-package-xbmc
xbian-package-xbmc-scripts xbian-update

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
3rd Oct, 2014, 01:45 AM
Post: #7
GDIT Offline
Registered
Posts: 5
Joined: Sep 2014
Reputation: 0
RE: Black screen and no ssh after prolonged inactivity
(2nd Oct, 2014 05:21 AM)f1vefour Wrote:  Try:

Terminal

sudo apt-get install xbian-package-config-shell xbian-package-config-xbmc xbian-package-firmware
xbian-package-initramfs-tools xbian-package-kernel
xbian-package-upstart-xbmc-bridge xbian-package-usbmount xbian-package-xbmc
xbian-package-xbmc-scripts xbian-update

Output: (Click to View)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apt-show-versions libapt-pkg-perl libhal-storage1 libhal1 ufsutils
update-notifier-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
jfsutils libao-common libao4 libavahi-compat-libdnssd1 libltdl7 u-boot-tools
xbian-package-shairplay
Suggested packages:
libasound2 libaudio2 libesd0 libesd-alsa0 libpulse0
The following packages will be REMOVED:
xbian-package-libshairport
The following NEW packages will be installed:
jfsutils libao-common libao4 libavahi-compat-libdnssd1 libltdl7 u-boot-tools
xbian-package-shairplay
The following packages will be upgraded:
xbian-package-config-shell xbian-package-config-xbmc xbian-package-firmware
xbian-package-initramfs-tools xbian-package-kernel
xbian-package-upstart-xbmc-bridge xbian-package-usbmount xbian-package-xbmc
xbian-package-xbmc-scripts xbian-update
10 upgraded, 7 newly installed, 1 to remove and 3 not upgraded.
Need to get 314 kB/49.4 MB of archives.
After this operation, 32.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://xbian.brantje.com/ stable/main xbian-package-usbmount all 1.0.6-1 [20.1 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main jfsutils armhf 1.1.15-2 [294 kB]
Fetched 314 kB in 19s (15.7 kB/s)
xbian-package-shairplay:armhf conflicts with xbian-package-libshairport:armhf
xbian-package-shairplay:armhf conflicts with xbian-package-libshairport:armhf
Create a snapshot of '/tmp/btrfs-snap/root/@' in '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-10-02-1543'
Transaction commit: none (default)
Delete subvolume '/tmp/btrfs-snap/root/@last_good_known'
Create a snapshot of '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-10-02-1543' in '/tmp/btrfs-snap/root/@last_good_known'
Transaction commit: none (default)
Delete subvolume '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-09-23-1648'
@btrfs-auto-snap_apt-run-2014-10-02-1543, 1 created snapshots, 1 destroyed snapshots, 0 warnings.
dpkg: regarding .../xbian-package-firmware_1.6.0_armhf.deb containing xbian-package-firmware:
xbian-update conflicts with libraspberrypi0
xbian-package-firmware provides libraspberrypi0 and is to be installed.

dpkg: error processing /var/cache/apt/archives/xbian-package-firmware_1.6.0_armhf.deb (--unpack):
conflicting packages - not installing xbian-package-firmware
Errors were encountered while processing:
/var/cache/apt/archives/xbian-package-firmware_1.6.0_armhf.deb
E: This installation run will require temporarily removing the essential package xbian-package-libshairport:armhf due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.
E: Internal Error, Could not early remove xbian-package-libshairport:armhf (1)
E: This installation run will require temporarily removing the essential package xbian-package-libshairport:armhf due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.
E: Internal Error, Could not early remove xbian-package-libshairport:armhf (1)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Find all posts by this user
Quote this message in a reply
3rd Oct, 2014, 03:01 AM
Post: #8
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: Black screen and no ssh after prolonged inactivity
I need @CurlyMo or @mk01 to chime in and let us know if it is okay to force the install. Or if you're feeling lucky go for it.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
3rd Oct, 2014, 03:09 AM
Post: #9
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Black screen and no ssh after prolonged inactivity
When creating a backup first it not that dangerous.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
3rd Oct, 2014, 06:42 AM
Post: #10
GDIT Offline
Registered
Posts: 5
Joined: Sep 2014
Reputation: 0
RE: Black screen and no ssh after prolonged inactivity
How would I produce a backup and force the installation?
Find all posts by this user
Quote this message in a reply
3rd Oct, 2014, 06:47 AM
Post: #11
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Black screen and no ssh after prolonged inactivity
http://lmgtfy.com/?q=create+sd+card+backup
http://lmgtfy.com/?q=force+apt+install

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
8th Oct, 2014, 01:47 PM
Post: #12
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Black screen and no ssh after prolonged inactivity
@GDIT

Wink

look better at your apt-get output.
Code:
Create a snapshot of '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-10-02-1543' in '/tmp/btrfs-snap/root/@last_good_known'

it is created automatically before each apt-get operation.
if you mess things up, just do right after
Code:
btrfs-auto-snapshot rollback root@last_good_known
reboot

and you are fine in 1minute (including reboot).

to your apt-get problem, shairport lib replaced libshairplay. just add xbian-package-shairport to the list of packages to install.

if still the error, add option "-o APT::Force-LoopBreak=1" as apt-get is suggesting

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [PROBLEM] xbian-config program addon shows black screen Roy Terhaar 7 19,317 31st Jan, 2017 08:35 AM
Last Post: rikardo1979
  [PROBLEM] Stuck on black screen at boot ilikexbian 5 17,389 1st Mar, 2015 07:54 PM
Last Post: ilikexbian
  Black screen - can't even startup koper89 1 6,573 30th Apr, 2014 05:36 AM
Last Post: yeti_z

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 11th May, 2025, 02:49 AM Powered By MyBB, © 2002-2025 MyBB Group.