WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: black screen on startup in tiny core  (Read 6695 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: black screen on startup in tiny core
« Reply #15 on: November 22, 2013, 06:47:00 AM »
i had to edit .ashrc because
(1)'error , check network , mirror or writable extension directory'occur when /tmp/tce/optional directory absent
(2)/etc/sysconfig/tcedir points to /mnt/sda1/tce by default if sda1 has tce folder
(3)to set-all-volume-control to max
(4)mounting ntfs3g partition on startup
Taking cue from your replies I did
Code: [Select]
/opt/bootsync.sh
#!/bin/sh
# put other system startup commands here, the boot process will wait until they complete.
# Use bootlocal.sh for system startup commands that can run in the background
# and therefore not slow down the boot process.
/usr/bin/sethostname box
/opt/bootlocal.sh &
rm /etc/sysconfig/tcedir/
ln -s  /tmp/tce /etc/sysconfig/tcedir
sudo ntfs-3g -o 'noexec,rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096' /dev/sda3 /mnt/sda3

Code: [Select]
/home/tc/.xsession
Xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x ./.setbackground ] && ./.setbackground
[ -x ./.mouse_config ] && ./.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d ".X.d" ] && find ".X.d" -type f -print | while read F; do . "$F"; done
xset s 0 &
mkdir -p /tmp/tce/optional
ossmix | grep -i 'leftvol' | grep -v 'known' | grep -v 'selected'| sed -n 's/ .*//p' | xargs -n 1 /home/tc/set-all-volume-control-full.txt
touch /home/tc/already-run.txt
Now my /home/tc/.ashrc is
Code: [Select]
#!/usr/local/bin/bash
# ~/.ashrc: Executed by SHells.
#
. /etc/init.d/tc-functions
# Alias definitions.
#
alias df='df -h'
alias du='du -h'
alias ls='ls -p'
alias ll='ls -l'
alias la='ls -la'
# Avoid errors... use -f to skip confirmation.
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
root=$( blkid | grep -i sd | grep -i 8557 | sed 's/\([/a-z0-9]*\).*/\1/' | sed '                                                                                      s/dev/mnt/')
#8557 is part of uuid of partition which has kundli,oxford extensions
if [ -f /home/tc/already-run.txt ] ;
then
        if [ -f "$root/tc/kundli.sh" ];
        then
                alias kundli="$root/tc/new-kundli.sh"
                echo try kundli
        fi
        if [ -f "$root/tc/oxford.sh" ];
        then
                alias oxford="$root/tc/new-oxford.sh"
                echo try oxford
        fi
fi
Things are fine again !
Thanks for your patience

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: black screen on startup in tiny core
« Reply #16 on: November 22, 2013, 08:46:09 PM »
.xsession is the wrong place for
Quote
mkdir -p /tmp/tce/optional
ossmix | grep -i 'leftvol' | grep -v 'known' | grep -v 'selected'| sed -n 's/ .*//p' | xargs -n 1 /home/tc/set-all-volume-control-full.txt
because commands in .xsession will be exexuted upon each run of startx, and only upon run of startx.
As already hinted in Reply #14, ossmixer state - and other OSS4 configurations - can be saved and added to filetool.lst.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: black screen on startup in tiny core
« Reply #17 on: November 23, 2013, 01:48:03 AM »
Quote
$ossinfo
Version info: OSS 4.2 (b 2006/201202181035) (0x00040100) GPL
Platform: Linux/i686 3.0.21-tinycore #3021 SMP Sat Feb 18 11:54:11 EET 2012 (box)

Number of audio devices:   10
Number of audio engines:   14
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
 0: osscore0 OSS core services
 1: oss_hdaudio0 Intel HD Audio interrupts=569 (569)
    HD Audio controller Intel HD Audio
    Vendor ID    0x80861c20
    Subvendor ID 0x10cf15dc
     Codec  0: Unknown (0x10ec0269/0x10cf1100)
     Codec  1: Agere HDA Modem (0x11c11040)
     Codec  3: Unknown (0x80862805/0x80860101)
 2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
 0: High Definition Audio 0x10ec026 (Mixer 0 of device object 1)

Audio devices
HD Audio play pcm1                /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play pcm2                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play pcm3                /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
HD Audio play pcm5                /dev/oss/oss_hdaudio0/pcm4  (device index 4)
HD Audio play pcm6                /dev/oss/oss_hdaudio0/pcm5  (device index 5)
HD Audio play pcm7                /dev/oss/oss_hdaudio0/pcm6  (device index 6)
HD Audio play pcm8                /dev/oss/oss_hdaudio0/pcm7  (device index 7)
HD Audio rec mix4                 /dev/oss/oss_hdaudio0/pcmin0  (device index 8)
HD Audio rec select               /dev/oss/oss_hdaudio0/pcmin1  (device index 9)

Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
That file 'set-all-volume-control-full.txt' contains
Code: [Select]
ossmix "$1" 90:90
I do not understand . Can you elucidate ?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: black screen on startup in tiny core
« Reply #18 on: November 23, 2013, 02:17:54 AM »
http://man.cx/savemixer(8)

Last time I used OSS4, configuration files including saved mixer state where under /usr/lib/oss.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)