Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help me im stupid! problem with cdm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
adcdam
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2015
Posts: 96

PostPosted: Tue Jul 28, 2015 6:09 am    Post subject: Help me im stupid! problem with cdm Reply with quote

The problem is that it goes to a black screen or i have to login twice,
here are some of my files


here is /etc/conf.d/xdm
Code:
# We always try and start X on a static VT. The various DMs no$
# to using VT7. If you wish to use the xdm init script, then y$
# that the VT checked is the same VT your DM wants to use. We $
# ensure that you haven't accidentally configured something to$
# in your /etc/inittab file so that you don't get a dead keybo$
CHECKVT=7

# What display manager do you use ?  [ xdm | gdm | kdm | gpe |$
# NOTE: If this is set in /etc/rc.conf, that setting will over$
DISPLAYMANAGER="cdm"
XSESSION="bspwm"


here is /etc/cdmrc file
Code:
#!/bin/bash
#
# Example config file for cdm(1).
# Values set here is the default as in cdm(1).

# List of programs, commands with whitespaces should be quoted or escaped.
# If unset, all sessions in /etc/X11/Sessions or /usr/share/xsessions are
# offered as choices.
#
# (An example:)
# binlist=(
#   '~/.xsession'                    # Launch your X session,
#   '/bin/bash --login'              # or just execute your shell,
#   '/usr/bin/fbterm'                # or start a frame buffer console,
#   '/usr/bin/cdm ~/.submenu.cdmrc'  # or go to a submenu :)
# )

# List all program display names, one-by-one matched with $binlist.
# Names with whitespaces should be quoted or escaped.
#
# (Continued example:)
# namelist=('X session' Console FBTerm 'Sub menu')

# Type of the programs, one-by-one matched with $binlist.
# `C' for *C*onsole programs, which would be `exec'ed.
# `X' for *X* programs, which would be run with cdm-xlaunch(1).
#
# (Continued example:)
# flaglist=(X C C C)

# Style for the cdm dialog, which is printed with dialog(1).
# Default to unset, causing dialog(1) to use the system wide default.
# See /usr/share/doc/cdm/themes for some nice choices.
dialogrc=/usr/share/cdm/themes/cdm

# Index of the first item in the menu.
countfrom=0

 

# Set default display.
display=0

# Where should the first X tty be spawned?
# special value `keep' causes to run X in current tty.
xtty=2

# Should cdm(1) stick to the specified display?
locktty=no

# Use ConsoleKit for X session?
consolekit=no

# Timeout for waiting for X session to register with ConsoleKi$
cktimeout=30

# Additional arguments to pass to X server, which is usually c$
#   /usr/bin/X :$display "${serverargs[@]}" vt$((xtty+display))
# Arguments with whitespaces should be quoted or escaped.
serverargs=(-nolisten tcp)

# Alternative method of calling startx(/setsid). Should only b$
# does not start X as expected (bash -x shows call to setsid s$
# no apparent reason does not start X).
# Only provided in the hope it may be useful, not a guaranteed$
altstartx=no

# Destination for stdout and stderr output from startx.
startxlog=/dev/null


here is my /etc/X11/Sessions/bspwm file
Code:
#!/bin/sh
# bspwm Xsession starter, based on Xsession from x11-apps/xinit

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.bspwm-errors" "${TMPDIR-/tmp}/bspwm-$USER" "/tmp/bspwm-$USER"
do
>---if ( cp /dev/null "$errfile" 2> /dev/null )
>---then
>--->---chmod 600 "$errfile"
>--->---exec > "$errfile" 2>&1
>--->---break
>---fi
done

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

rh6sysresources=/etc/X11/xinit/Xresources
rh6sysmodmap=/etc/X11/xinit/Xmodmap

# merge in defaults
if [ -f "$rh6sysresources" ]; then
>---xrdb -merge "$rh6sysresources"
fi

if [ -f "$sysresources" ]; then
>---xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
>---xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
>---setxkbmap `cat "$sysxkbmap"`
>---XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
>---setxkbmap `cat "$userxkbmap"`
>---XKB_IN_USE=yes
fi

#
# Eeek, this seems like too much magic here
#
if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
>---if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
>--->---xkbsymbols=`sed -n -e 's/^[>   ]*XkbSymbols[   ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config /etc/X11/xorg.conf`
>--->---if [ -n "$xkbsymbols" ]; then
>--->--->---setxkbmap -symbols "$xkbsymbols"
>--->--->---XKB_IN_USE=yes
>--->---fi
>---fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
>---if [ -f "$rh6sysmodmap" ]; then
>--->---xmodmap "$rh6sysmodmap"
>---fi

>---if [ -f "$sysmodmap" ]; then
>--->---xmodmap "$sysmodmap"
>---fi

>---if [ -f "$usermodmap" ]; then
>--->---xmodmap "$usermodmap"
>---fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
if [ -d /etc/X11/xinit/xinitrc.d ]; then
>---for i in /etc/X11/xinit/xinitrc.d/* ; do
>--->---if [ -x "$i" ]; then
>--->---. "$i"
>--->---fi
>---done
fi

exec /usr/bin/sxhkd &
exec /usr/bin/bspwm


here is my /etc/X11/Sessions/Xsession file
Code:
#!/bin/sh
# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $

case $# in
1)
>---case $1 in
>---failsafe)
>--->---exec xterm -geometry 80x24-0-0
>--->---;;
>---esac
esac

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
>---if ( cp /dev/null "$errfile" 2> /dev/null )
>---then
>--->---chmod 600 "$errfile"
>--->---exec > "$errfile" 2>&1
>--->---break
>---fi
done

# clean up after xbanner
if which freetemp 2> /dev/null ; then
>---freetemp
fi

startup=$HOME/.xsession

userresources=$HOME/.Xresources~
usermodmap=$HOME/.Xmodmap~
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources~
sysmodmap=/etc/X11/Xmodmap~
sysxkbmap=/etc/X11/Xkbmap

rh6sysresources=/etc/X11/xinit/Xresources~
rh6sysmodmap=/etc/X11/xinit/Xmodmap~


# merge in defaults
if [ -f "$rh6sysresources" ]; then
    xrdb -merge "$rh6sysresources"
fi

if [ -f "$sysresources" ]; then
    xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
    setxkbmap `cat "$sysxkbmap"`
    XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
    setxkbmap `cat "$userxkbmap"`
    XKB_IN_USE=yes
fi

#
# Eeek, this seems like too much magic here
#
if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
    if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
       xkbsymbols=`sed -n -e 's/^[     ]*XkbSymbols[   ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
       if [ -n "$xkbsymbols" ]; then
           setxkbmap -symbols "$xkbsymbols"
           XKB_IN_USE=yes
       fi
    fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
    if [ -f "$rh6sysmodmap" ]; then
       xmodmap "$rh6sysmodmap"
    fi

    if [ -f "$sysmodmap" ]; then
       xmodmap "$sysmodmap"
    fi

    if [ -f "$usermodmap" ]; then
       xmodmap "$usermodmap"
    fi
fi

unset XKB_IN_USE

if [ -x "$startup" ]; then
>---exec "$startup"
elif [ -x "$HOME/.Xclients" ]; then
>---exec "$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
>---exec /etc/X11/xinit/Xclients
elif [ -x /etc/X11/Xclients ]; then
>---exec /etc/X11/Xclients
else
>---exec xsm
fi


pd im using funtoo
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10215
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jul 31, 2015 12:54 pm    Post subject: Reply with quote

Moved from Desktop Environments to Unsupported Software. Not about Gentoo so it fits better here. Also added code tags (which are always appreciated) to make the listings more readable.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum