Home › Forums › Forums › Technical Support for PiScreen › Startx does not work automatically on /etc/rc.local
- This topic has 8 replies, 2 voices, and was last updated 7 years, 11 months ago by phantom_83.
- AuthorPosts
- June 17, 2015 at 6:31 am #4136phantom_83Participant
I followed your guide to the letter, it all works perfectly, but when I insert:
su -l pi -c “env FRAMEBUFFER=/dev/fb1 startx &”
in
sudo nano /etc/rc.localafter restarting the desktop does not start, the screen remains black. The boot is displayed but the screen of raspbian not see and I run it manually via ssh:
FRAMEBUFFER = / dev / fb1 startx
and I get:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: Open failed for transport inet6 / raspberrypi: 1
_XSERVTransMakeAllCOTSServerListeners: Failed to open listener for inet6X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
Current Operating System: Linux raspberrypi 18/03/11-v7 + # 781 SMP PREEMPT Tue April 21 18:07:59 BST 2015 armv7l
Kernel command line: dma.dmachans = 0x7f35 bcm2708_fb.fbwidth bcm2708_fb.fbheight = 656 = 416 = bcm2709.boardrev 0xa01041 bcm2709.serial = 0xb071613c smsc95xx.macaddr = B8: 27: EB: 71: 61: 3C = 1 bcm2708_fb.fbswap bcm2709 .disk_led_gpio = 47 = 0 bcm2709.disk_led_active_low sdhci-bcm2708.emmc_clock_freq = 250000000 = vc_mem.mem_base 0x3dc00000 vc_mem.mem_size 0x3f000000 dwc_otg.lpm_enable = = 0 = ttyAMA0,115200 console console = tty1 root = / dev / mmcblk0p2 rootfstype = ext4 elevator = deadline rootwait fbcon = map: 10 fbcon = rotate: 0 fbcon = font: ProFont6x11
Build Date: 11 February 2015 09:31:17 PM
xorg-server 2: 1.12.4-6 + deb7u6 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.33.1
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 the command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.1.log”, Time: Tue Jun 16 22:24:01 2015
(==) Using config directory system “/usr/share/X11/xorg.conf.d”
FATAL: Module g2d_23 not found.
The xkeyboard keymap compiler (xkbcomp) reports:
> Warning: Type “ONE_LEVEL” has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X serverBut I can work quietly.
How do I solve the problem?June 17, 2015 at 9:05 am #4137Mark WilliamsKeymasterDoes it work when you run in manually?
Mark --OzzMaker.com --
June 17, 2015 at 9:04 pm #4138phantom_83ParticipantYes!!! Manually it ok
June 17, 2015 at 9:06 pm #4139Mark WilliamsKeymastercan you show me what the contents of /etc/rc.local is. When it has the startx command in it.
Mark --OzzMaker.com --
June 19, 2015 at 9:21 pm #4148phantom_83Participantsorry for the delay. I was busy at work . Here is the content of rc.local:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0” on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.# Print the IP address
_IP=$(hostname -I) || true
if [ “$_IP” ]; then
printf “My IP address is %s\n” “$_IP”
fi
su -l pi -c “env FRAMEBUFFER=/dev/fb1 startx &”
exit 0June 22, 2015 at 8:44 pm #4157phantom_83Participantup? thanks!
June 23, 2015 at 5:59 pm #4162Mark WilliamsKeymasterI am not sure why it isn’t working.
Have you changed the keyboard layout?What about our image, have you tried it?
https://ozzmaker.com/piscreen/PiScreenImage-SDCard-1.8.zipMark --OzzMaker.com --
June 23, 2015 at 6:33 pm #4163phantom_83Participantyou have changed the layout … now I feel your image and see what happens.
thanks!June 24, 2015 at 9:15 pm #4170phantom_83Participantwith your image works perfectly !!! I wanted to add kodi. it’s possible? I have to do something in particular?
- AuthorPosts
- You must be logged in to reply to this topic.