paulie
Posts: 275
Joined: Thu Jan 19, 2012 6:51 pm

PiTFT: screen stays black

Wed Jul 02, 2014 7:31 pm

I have followed Adafruit's instructions on how to install software for the PiTFT without success.

here are details of my system:

Code: Select all

uname -a
Linux raspberrypi 3.10.32+ #6 PREEMPT Tue Apr 22 11:19:48 SGT 2014 armv6l GNU/Linux

Code: Select all

lsmod
Module                  Size  Used by
rndis_host              7032  0 
cdc_ether               4721  1 rndis_host
stmpe_ts                3070  0 
fb_ili9340              3139  0 
fbtft_device           28788  0 
fbtft                  31153  2 fb_ili9340,fbtft_device
syscopyarea             3135  1 fbtft
sysfillrect             3301  1 fbtft
sysimgblt               2194  1 fbtft
fb_sys_fops             1403  1 fbtft
i2c_dev                 5609  0 
snd_bcm2835            15962  0 
snd_pcm                82132  1 snd_bcm2835
snd_seq                53679  0 
snd_seq_device          6473  1 snd_seq
snd_timer              20030  2 snd_pcm,snd_seq
snd                    58921  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
snd_page_alloc          5132  1 snd_pcm
joydev                  9072  0 
leds_gpio               2118  0 
led_class               3710  1 leds_gpio
evdev                   9439  6 

spi_bcm2708             7444  0 
i2c_bcm2708             3939  0 

Code: Select all

ls /usr/share/X11/xorg.conf.d/
10-evdev.conf  50-synaptics.conf
I ran the following commands.......

Code: Select all

sudo modprobe spi-bcm2708
 sudo modprobe fbtft_device name=adafruitts
 rotate=90
 export FRAMEBUFFER=/dev/fb1
 startx

but the Xwindow on my TV restarted and there was no change from black on PiTFT (since changing from white after booting)

Herewith Xorg.1.log

Code: Select all

[  2357.632] 
X.Org X Server 1.12.4
Release Date: 2012-08-27
[  2357.634] X Protocol Version 11, Revision 0
[  2357.635] Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
[  2357.636] Current Operating System: Linux raspberrypi 3.10.32+ #6 PREEMPT Tue Apr 22 11:19:48 SGT 2014 armv6l
[  2357.637] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1024 bcm2708_fb.fbheight=768 bcm2708.boardrev=0xe bcm2708.serial=0x953463a1 smsc95xx.macaddr=B8:27:EB:34:63:A1 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0  console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[  2357.649] Build Date: 18 December 2013  05:20:52PM
[  2357.649] xorg-server 2:1.12.4-6+deb7u2 (Julien Cristau <jcristau@debian.org>) 
[  2357.650] Current version of pixman: 0.29.3
[  2357.650] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  2357.650] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2357.660] (==) Log file: "/var/log/Xorg.1.log", Time: Wed Jul  2 19:49:59 2014
[  2357.662] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  2357.662] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  2357.664] (==) No Layout section.  Using the first Screen section.
[  2357.664] (==) No screen section available. Using defaults.
[  2357.664] (**) |-->Screen "Default Screen Section" (0)
[  2357.664] (**) |   |-->Monitor "<default monitor>"
[  2357.666] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[  2357.667] (==) Automatically adding devices
[  2357.667] (==) Automatically enabling devices
[  2357.667] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[  2357.667] 	Entry deleted from font path.
[  2357.668] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  2357.668] 	Entry deleted from font path.
[  2357.668] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[  2357.668] 	Entry deleted from font path.
[  2357.668] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  2357.668] 	Entry deleted from font path.
[  2357.669] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[  2357.669] 	Entry deleted from font path.
[  2357.669] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[  2357.669] 	Entry deleted from font path.
[  2357.669] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[  2357.669] 	Entry deleted from font path.
[  2357.669] (==) FontPath set to:
	/usr/share/fonts/X11/Type1,
	built-ins
[  2357.690] (==) ModulePath set to "/usr/lib/xorg/modules"
[  2357.690] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[  2357.690] (II) Loader magic: 0x1aa7a8
[  2357.690] (II) Module ABI versions:
[  2357.690] 	X.Org ANSI C Emulation: 0.4
[  2357.691] 	X.Org Video Driver: 12.1
[  2357.691] 	X.Org XInput driver : 16.0
[  2357.691] 	X.Org Server Extension : 6.0
[  2357.691] (II) LoadModule: "extmod"
[  2357.694] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[  2357.697] (II) Module extmod: vendor="X.Org Foundation"
[  2357.697] 	compiled for 1.12.4, module version = 1.0.0
[  2357.698] 	Module class: X.Org Server Extension
[  2357.698] 	ABI class: X.Org Server Extension, version 6.0
[  2357.698] (II) Loading extension SELinux
[  2357.698] (II) Loading extension MIT-SCREEN-SAVER
[  2357.698] (II) Loading extension XFree86-VidModeExtension
[  2357.698] (II) Loading extension XFree86-DGA
[  2357.699] (II) Loading extension DPMS
[  2357.699] (II) Loading extension XVideo
[  2357.699] (II) Loading extension XVideo-MotionCompensation
[  2357.699] (II) Loading extension X-Resource
[  2357.699] (II) LoadModule: "dbe"
[  2357.710] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[  2357.712] (II) Module dbe: vendor="X.Org Foundation"
[  2357.712] 	compiled for 1.12.4, module version = 1.0.0
[  2357.712] 	Module class: X.Org Server Extension
[  2357.712] 	ABI class: X.Org Server Extension, version 6.0
[  2357.712] (II) Loading extension DOUBLE-BUFFER
[  2357.713] (II) LoadModule: "glx"
[  2357.714] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  2357.715] (II) Module glx: vendor="X.Org Foundation"
[  2357.715] 	compiled for 1.12.4, module version = 1.0.0
[  2357.715] 	ABI class: X.Org Server Extension, version 6.0
[  2357.716] (==) AIGLX enabled
[  2357.716] (II) Loading extension GLX
[  2357.716] (II) LoadModule: "record"
[  2357.717] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[  2357.719] (II) Module record: vendor="X.Org Foundation"
[  2357.719] 	compiled for 1.12.4, module version = 1.13.0
[  2357.719] 	Module class: X.Org Server Extension
[  2357.719] 	ABI class: X.Org Server Extension, version 6.0
[  2357.719] (II) Loading extension RECORD
[  2357.719] (II) LoadModule: "dri"
[  2357.741] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[  2357.743] (II) Module dri: vendor="X.Org Foundation"
[  2357.744] 	compiled for 1.12.4, module version = 1.0.0
[  2357.744] 	ABI class: X.Org Server Extension, version 6.0
[  2357.744] (II) Loading extension XFree86-DRI
[  2357.744] (II) LoadModule: "dri2"
[  2357.745] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  2357.746] (II) Module dri2: vendor="X.Org Foundation"
[  2357.746] 	compiled for 1.12.4, module version = 1.2.0
[  2357.747] 	ABI class: X.Org Server Extension, version 6.0
[  2357.747] (II) Loading extension DRI2
[  2357.747] (==) Matched fbdev as autoconfigured driver 0
[  2357.747] (==) Assigned the driver to the xf86ConfigLayout
[  2357.747] (II) LoadModule: "fbdev"
[  2357.749] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[  2357.760] (II) Module fbdev: vendor="X.Org Foundation"
[  2357.761] 	compiled for 1.12.1, module version = 0.4.2
[  2357.761] 	ABI class: X.Org Video Driver, version 12.0
[  2357.761] (II) FBDEV: driver for framebuffer: fbdev
[  2357.761] (--) using VT number 8

[  2357.810] (WW) Falling back to old probe method for fbdev
[  2357.810] (II) Loading sub module "fbdevhw"
[  2357.810] (II) LoadModule: "fbdevhw"
[  2357.811] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[  2357.812] (II) Module fbdevhw: vendor="X.Org Foundation"
[  2357.813] 	compiled for 1.12.4, module version = 0.0.2
[  2357.813] 	ABI class: X.Org Video Driver, version 12.1
[  2357.814] (II) FBDEV(0): using default device
[  2357.814] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  2357.814] (II) FBDEV(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 16/16
[  2357.814] (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16
[  2357.815] (==) FBDEV(0): RGB weight 565
[  2357.815] (==) FBDEV(0): Default visual is TrueColor
[  2357.815] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[  2357.815] (II) FBDEV(0): hardware: fb_ili9340 (video memory: 150kB)
[  2357.816] (II) FBDEV(0): checking modes against framebuffer device...
[  2357.816] (II) FBDEV(0): checking modes against monitor...
[  2357.816] (--) FBDEV(0): Virtual size is 320x240 (pitch 320)
[  2357.816] (**) FBDEV(0):  Built-in mode "current"
[  2357.816] (==) FBDEV(0): DPI set to (96, 96)
[  2357.816] (II) Loading sub module "fb"
[  2357.817] (II) LoadModule: "fb"
[  2357.818] (II) Loading /usr/lib/xorg/modules/libfb.so
[  2357.819] (II) Module fb: vendor="X.Org Foundation"
[  2357.840] 	compiled for 1.12.4, module version = 1.0.0
[  2357.840] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2357.840] (**) FBDEV(0): using shadow framebuffer
[  2357.841] (II) Loading sub module "shadow"
[  2357.841] (II) LoadModule: "shadow"
[  2357.842] (II) Loading /usr/lib/xorg/modules/libshadow.so
[  2357.843] (II) Module shadow: vendor="X.Org Foundation"
[  2357.843] 	compiled for 1.12.4, module version = 1.1.0
[  2357.843] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2357.844] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[  2357.846] (==) FBDEV(0): Backing store disabled
[  2357.847] (==) FBDEV(0): DPMS enabled
[  2357.847] (==) RandR enabled
[  2357.847] (II) Initializing built-in extension Generic Event Extension
[  2357.848] (II) Initializing built-in extension SHAPE
[  2357.848] (II) Initializing built-in extension MIT-SHM
[  2357.848] (II) Initializing built-in extension XInputExtension
[  2357.848] (II) Initializing built-in extension XTEST
[  2357.848] (II) Initializing built-in extension BIG-REQUESTS
[  2357.848] (II) Initializing built-in extension SYNC
[  2357.848] (II) Initializing built-in extension XKEYBOARD
[  2357.848] (II) Initializing built-in extension XC-MISC
[  2357.849] (II) Initializing built-in extension SECURITY
[  2357.849] (II) Initializing built-in extension XINERAMA
[  2357.849] (II) Initializing built-in extension XFIXES
[  2357.849] (II) Initializing built-in extension RENDER
[  2357.849] (II) Initializing built-in extension RANDR
[  2357.849] (II) Initializing built-in extension COMPOSITE
[  2357.849] (II) Initializing built-in extension DAMAGE
[  2357.870] (II) SELinux: Disabled on system
[  2358.033] (II) AIGLX: Screen 0 is not DRI2 capable
[  2358.034] (II) AIGLX: Screen 0 is not DRI capable
[  2358.034] (EE) AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[  2358.034] (EE) GLX: could not load software renderer
[  2358.035] (II) GLX: no usable GL providers found for screen 0
[  2358.347] (II) config/udev: Adding input device stmpe-ts (/dev/input/event2)
[  2358.348] (**) stmpe-ts: Applying InputClass "evdev touchscreen catchall"
[  2358.348] (**) stmpe-ts: Applying InputClass "calibration"
[  2358.348] (II) LoadModule: "evdev"
[  2358.350] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[  2358.351] (II) Module evdev: vendor="X.Org Foundation"
[  2358.351] 	compiled for 1.12.1, module version = 2.7.0
[  2358.351] 	Module class: X.Org XInput Driver
[  2358.351] 	ABI class: X.Org XInput driver, version 16.0
[  2358.352] (II) Using input driver 'evdev' for 'stmpe-ts'
[  2358.352] (**) stmpe-ts: always reports core events
[  2358.352] (**) evdev: stmpe-ts: Device: "/dev/input/event2"
[  2358.353] (--) evdev: stmpe-ts: Vendor 0 Product 0
[  2358.353] (--) evdev: stmpe-ts: Found absolute axes
[  2358.353] (--) evdev: stmpe-ts: Found x and y absolute axes
[  2358.353] (--) evdev: stmpe-ts: Found absolute touchscreen
[  2358.353] (**) Option "SwapAxes" "1"
[  2358.353] (II) evdev: stmpe-ts: Configuring as touchscreen
[  2358.354] (**) evdev: stmpe-ts: YAxisMapping: buttons 4 and 5
[  2358.354] (**) evdev: stmpe-ts: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  2358.354] (**) Option "config_info" "udev:/sys/devices/platform/bcm2708_spi.0/spi_master/spi0/spi0.1/stmpe-ts.0/input/input2/event2"
[  2358.354] (II) XINPUT: Adding extended input device "stmpe-ts" (type: TOUCHSCREEN, id 6)
[  2358.355] (II) evdev: stmpe-ts: initialized for absolute axes.
[  2358.357] (**) stmpe-ts: (accel) keeping acceleration scheme 1
[  2358.357] (**) stmpe-ts: (accel) acceleration profile 0
[  2358.357] (**) stmpe-ts: (accel) acceleration factor: 2.000
[  2358.357] (**) stmpe-ts: (accel) acceleration threshold: 4
[  2358.360] (II) config/udev: Adding input device stmpe-ts (/dev/input/mouse1)
[  2358.360] (**) stmpe-ts: Applying InputClass "calibration"
[  2358.360] (II) No input driver specified, ignoring this device.
[  2358.361] (II) This device may have been added with another device file.
[  2358.364] (II) config/udev: Adding input device HID 04d9:2517 (/dev/input/event0)
[  2358.364] (**) HID 04d9:2517: Applying InputClass "evdev keyboard catchall"
[  2358.364] (II) Using input driver 'evdev' for 'HID 04d9:2517'
[  2358.365] (**) HID 04d9:2517: always reports core events
[  2358.365] (**) evdev: HID 04d9:2517: Device: "/dev/input/event0"
[  2358.365] (--) evdev: HID 04d9:2517: Vendor 0x4d9 Product 0x2517
[  2358.365] (--) evdev: HID 04d9:2517: Found keys
[  2358.365] (II) evdev: HID 04d9:2517: Configuring as keyboard
[  2358.366] (**) Option "config_info" "udev:/sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0/event0"
[  2358.366] (II) XINPUT: Adding extended input device "HID 04d9:2517" (type: KEYBOARD, id 7)
[  2358.366] (**) Option "xkb_rules" "evdev"
[  2358.366] (**) Option "xkb_model" "pc105"
[  2358.366] (**) Option "xkb_layout" "gb"
[  2358.586] (II) config/udev: Adding input device HID 04d9:2517 (/dev/input/event1)
[  2358.587] (**) HID 04d9:2517: Applying InputClass "evdev pointer catchall"
[  2358.587] (**) HID 04d9:2517: Applying InputClass "evdev keyboard catchall"
[  2358.587] (II) Using input driver 'evdev' for 'HID 04d9:2517'
[  2358.587] (**) HID 04d9:2517: always reports core events
[  2358.587] (**) evdev: HID 04d9:2517: Device: "/dev/input/event1"
[  2358.588] (--) evdev: HID 04d9:2517: Vendor 0x4d9 Product 0x2517
[  2358.588] (--) evdev: HID 04d9:2517: Found 9 mouse buttons
[  2358.588] (--) evdev: HID 04d9:2517: Found scroll wheel(s)
[  2358.588] (--) evdev: HID 04d9:2517: Found relative axes
[  2358.588] (--) evdev: HID 04d9:2517: Found x and y relative axes
[  2358.589] (--) evdev: HID 04d9:2517: Found absolute axes
[  2358.589] (II) evdev: HID 04d9:2517: Forcing absolute x/y axes to exist.
[  2358.589] (--) evdev: HID 04d9:2517: Found keys
[  2358.589] (II) evdev: HID 04d9:2517: Configuring as mouse
[  2358.589] (II) evdev: HID 04d9:2517: Configuring as keyboard
[  2358.589] (II) evdev: HID 04d9:2517: Adding scrollwheel support
[  2358.589] (**) evdev: HID 04d9:2517: YAxisMapping: buttons 4 and 5
[  2358.590] (**) evdev: HID 04d9:2517: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  2358.590] (**) Option "config_info" "udev:/sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.1/input/input1/event1"
[  2358.590] (II) XINPUT: Adding extended input device "HID 04d9:2517" (type: KEYBOARD, id 8)
[  2358.590] (**) Option "xkb_rules" "evdev"
[  2358.591] (**) Option "xkb_model" "pc105"
[  2358.591] (**) Option "xkb_layout" "gb"
[  2358.593] (II) evdev: HID 04d9:2517: initialized for relative axes.
[  2358.593] (WW) evdev: HID 04d9:2517: ignoring absolute axes.
[  2358.594] (**) HID 04d9:2517: (accel) keeping acceleration scheme 1
[  2358.595] (**) HID 04d9:2517: (accel) acceleration profile 0
[  2358.595] (**) HID 04d9:2517: (accel) acceleration factor: 2.000
[  2358.595] (**) HID 04d9:2517: (accel) acceleration threshold: 4
[  2358.598] (II) config/udev: Adding input device HID 04d9:2517 (/dev/input/mouse0)
[  2358.598] (II) No input driver specified, ignoring this device.
[  2358.598] (II) This device may have been added with another device file.
[  2358.638] (EE) FBDEV(0): FBIOBLANK: Invalid argument
[  2358.659] (II) evdev: stmpe-ts: Close
[  2358.660] (II) UnloadModule: "evdev"
[  2358.660] (II) evdev: HID 04d9:2517: Close
[  2358.661] (II) UnloadModule: "evdev"
[  2358.661] (II) evdev: HID 04d9:2517: Close
[  2358.661] (II) UnloadModule: "evdev"
[  2358.712] Server terminated successfully (0). Closing log file.

The instructions say remove a file from /usr/share/X11/xorg.conf.d/ or edit it to reference fb1 but the file is not there.
Anyone with any ideas?
It has been my custom to use Xeyes

paulie
Posts: 275
Joined: Thu Jan 19, 2012 6:51 pm

Re: PiTFT: screen stays black

Tue Jul 08, 2014 12:11 pm

Bump.
187 views, but no replies :-(
Any ideas, anybody?
It has been my custom to use Xeyes

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: PiTFT: screen stays black

Wed Jul 09, 2014 8:57 pm

Maybe try over at Adafruit forums (https://forums.adafruit.com/)?

Return to “Troubleshooting”