Page 1 of 1

FATAL: Module g2d_23 not found.

Posted: Wed Sep 03, 2014 11:33 am
by Benaal
Hi all,

I have been accessing my RPi very successfully utilising PuTTY up until this week. For some reason I am now getting this error when I get past the SSH Login:
FATAL: Module g2d_23 not found.

The screen attached to the pi appears to load another desktop, and when I close the SSH connection, it closes this second desktop of its' own accord.

I'm not exactly an expert in Linux here, coming from a Windows background, but I do understand the very basics of X server, and I am wondering what has changed to make this not work.

The only things I have done recently are:
- dist-upgrade
- apt-get upgrade
- auto-login on boot (changed inittab) <--- Most likely culprit, i guess

changed inittab to "1:2345:respawn:/bin/login -f pi tty1</dev/tty1>/dev/tty1 2>&1"

Thanks in advance for help.

Re: FATAL: Module g2d_23 not found.

Posted: Wed Sep 03, 2014 12:16 pm
by DirkS
Are you trying to start an X session (GUI desktop) while you're logged inn with Putty / SSH?

Re: FATAL: Module g2d_23 not found.

Posted: Wed Sep 03, 2014 12:40 pm
by Benaal
Not that i'm aware of. I am simply trying to get to the terminal via SSH. Whether something in the SSH init sequence is calling an X GUI without my knowledge, I am unsure. What sort of changes would lead this kind of request to happen, I wonder?

Re: FATAL: Module g2d_23 not found.

Posted: Wed Sep 03, 2014 6:28 pm
by DougieLawson
What have you got in /home/`whoami`/.bashrc or /home/`whoami`/.profile?

Re: FATAL: Module g2d_23 not found.

Posted: Thu Sep 04, 2014 8:28 am
by Benaal
My .bashrc file contains:

Code: Select all

# ~/.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
[ -z "$PS1" ] && return

# 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) 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

# 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 [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

Re: FATAL: Module g2d_23 not found.

Posted: Thu Sep 04, 2014 8:29 am
by Benaal
My .profile contains:

Code: Select all

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
	. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

Re: FATAL: Module g2d_23 not found.

Posted: Tue Sep 09, 2014 10:02 am
by Benaal
Just by way of update, this is what my SSH terminal shows when I try to log in:

Code: Select all

X.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 PBRScreen 3.12.26+ #704 PREEMPT Wed Aug 20 22:35                                                                                        :11 BST 2014 armv6l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbhe                                                                                        ight=1080 bcm2708.boardrev=0xe bcm2708.serial=0xd272403 smsc95xx.macaddr=B8:27:E                                                                                        B:27:24:03 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc                                                                                        _mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=tty                                                                                        AMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline r                                                                                        ootwait
Build Date: 18 December 2013  05:20:52PM
xorg-server 2:1.12.4-6+deb7u2 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.29.3
        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: "/var/log/Xorg.2.log", Time: Tue Sep  9 10:54:09 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
FATAL: Module g2d_23 not found.

Re: FATAL: Module g2d_23 not found.

Posted: Tue Sep 09, 2014 10:06 am
by DougieLawson
Try renaming the fbturbo conf file
sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf /usr/share/X11/xorg.conf.d/99-fbturbo.conf~

Re: FATAL: Module g2d_23 not found.

Posted: Tue Sep 09, 2014 10:56 am
by Benaal
Thanks for that. That has removed the error warning. I guess as usual that was a red herring. I still get no terminal prompt on the SSH. It now just hangs after this:

Code: Select all

X.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 PBRScreen 3.12.26+ #704 PREEMPT Wed Aug 20 22:35                                                                                        :11 BST 2014 armv6l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbhe                                                                                        ight=1080 bcm2708.boardrev=0xe bcm2708.serial=0xd272403 smsc95xx.macaddr=B8:27:E                                                                                        B:27:24:03 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc                                                                                        _mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=tty                                                                                        AMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline r                                                                                        ootwait
Build Date: 18 December 2013  05:20:52PM
xorg-server 2:1.12.4-6+deb7u2 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.29.3
        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: "/var/log/Xorg.2.log", Time: Tue Sep  9 11:49:53 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

I believe a new TTY is opening up on the HDMI port when I try to log in via SSH, which seems a bit backwards to me.
As my co-workers often say... "what have you broken this time?"

-Martin

Re: FATAL: Module g2d_23 not found.

Posted: Tue Sep 09, 2014 11:16 am
by Aydan
Benaal wrote:Thanks for that. That has removed the error warning. I guess as usual that was a red herring. I still get no terminal prompt on the SSH. It now just hangs after this:

Code: Select all

X.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 PBRScreen 3.12.26+ #704 PREEMPT Wed Aug 20 22:35                                                                                        :11 BST 2014 armv6l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbhe                                                                                        ight=1080 bcm2708.boardrev=0xe bcm2708.serial=0xd272403 smsc95xx.macaddr=B8:27:E                                                                                        B:27:24:03 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc                                                                                        _mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=tty                                                                                        AMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline r                                                                                        ootwait
Build Date: 18 December 2013  05:20:52PM
xorg-server 2:1.12.4-6+deb7u2 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.29.3
        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: "/var/log/Xorg.2.log", Time: Tue Sep  9 11:49:53 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

I believe a new TTY is opening up on the HDMI port when I try to log in via SSH, which seems a bit backwards to me.
As my co-workers often say... "what have you broken this time?"

-Martin
The real question is: "Why do you get Xorg messages when logging in via ssh?" I suspect the shell is set to xterm instead of bash. Without X-forwarding and a running X-server on your PC this cannot work, and is probably not what you want anyway.

Regards
Aydan

Re: FATAL: Module g2d_23 not found.

Posted: Tue Sep 09, 2014 1:02 pm
by Benaal
Is it the inittab file causing the issue? i've changed the 1st terminal to load /bin/login on run-levels 2-5, to auto-login the pi.

See below inittab file:

Code: Select all

# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
#1:2345:respawn:/sbin/getty --noclear 38400 tty1
1:2345:respawn:/bin/login -f pi tty1</dev/tty1>/dev/tty1 2>&1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3


#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100