Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Laptop with docking station installation

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
guitarist
n00b
n00b
User avatar
Posts: 5
Joined: Sun Oct 12, 2003 6:17 pm
Location: Suwanee, GA

Laptop with docking station installation

  • Quote

Post by guitarist » Wed Oct 15, 2003 3:36 pm

So, I am a complete n00b, but just got through my FIRST successful Gentoo installation from Stage1 right into KDE <pauses for applause....>, but that was on a desktop, so now I am thinking of moving on to greater things. I have a Dell laptop with docking station etc. If I install Gentoo on it, how would I manage the boot process depending on whether it is docked or not?

Let's see if I have learnt anything so far - I would guess that I would need either:

- 2 different kernels with the relevant NICs/hardware etc. compiled in, then use Grub to dual boot; or

- 1 kernel with all the relevant hardware compiled in. (Hmmm, I guess building one kernel would be better)

but - Having gone through the Xf86config process, I would imagine that the two different video adapters, two different keyboards, two different mice (mouses?) (glidepad vs. PS2 mouse) could cause major headaches.

I seem to recall that Xf86config doesn't mind having more than one video adapter in, if that is correct does the same hold true for other hardware?

Would hotplug simply detect that I have extra hardware when I boot while docked and therefore X would use the correct hardware? After seeing how manually intensive Gentoo has been so far I would be surprised if this is the case ;)

Thanks in advance for your answers.

Ian
Top
hbmartin
Guru
Guru
User avatar
Posts: 386
Joined: Fri Sep 12, 2003 2:23 am
Location: Home is where the boxen are

  • Quote

Post by hbmartin » Thu Oct 16, 2003 3:13 am

You'll need to give us a more details...
Is your dock a 'port extender' more or less?
Or does it have it's own integrated video/sound/networking controllers?
How does it connect to your laptop?

Harold
Top
guitarist
n00b
n00b
User avatar
Posts: 5
Joined: Sun Oct 12, 2003 6:17 pm
Location: Suwanee, GA

  • Quote

Post by guitarist » Thu Oct 16, 2003 10:01 am

Thanks for the reply. It is a full docking station that the laptop goes into with all its own built-in cards (sound, video, CD docking port etc.). It connects to the laptop through a large connector (proprietary I would guess) on the back of the laptop. As I said earlier it is a Dell.

Anybody ever done this? Help would be appreciated.

TIA
Top
toberonenz
n00b
n00b
Posts: 15
Joined: Sat Apr 19, 2003 10:23 am
Location: Auckland, New Zealand

  • Quote

Post by toberonenz » Wed Feb 04, 2004 6:02 pm

I use a Dell port replicator which only really adds a network card.
I use different /etc/conf.d/net and X11 scripts that I append a d or l onto to distinguish and link one or the other when booting via an init script I developed that detects what type the network card is. I also use it to start different services like pcmcia, ntp etc

You could do something similar
I'm am investigating the possiblity of hot docking vi acpi which is the only thing that doesn't work for me at the moment. (This excludes suspend to disk, I haven't been game enought to try it!)
Top
corefile
n00b
n00b
Posts: 44
Joined: Thu Jun 27, 2002 7:02 am

  • Quote

Post by corefile » Wed Feb 25, 2004 5:29 am

can you post your init script, I'd like to see if it will work for me. I can change what I need to, but need a starting point
Top
toberonenz
n00b
n00b
Posts: 15
Joined: Sat Apr 19, 2003 10:23 am
Location: Auckland, New Zealand

  • Quote

Post by toberonenz » Thu Feb 26, 2004 7:54 am

corefile wrote:can you post your init script, I'd like to see if it will work for me. I can change what I need to, but need a starting point
Here it is

Code: Select all

#!/sbin/runscript

# Script to determine if laptop is docked or not
# 
# test if docked by testing for the docking station network card in the pci table

setup_env(){
	TESTSTRING="3c905C"
	lspci | grep $TESTSTRING > /etc/docked
	POWER=`cat /proc/acpi/ac_adapter/AC/state | tail -c9`
}

start() {
	setup_env
if [ "$POWER" == "off-line" ] 
then 
	echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
if [ -s /etc/docked ]
then
	ebegin "Laptop is Docked. Starting associated services"
	ln -sf /etc/conf.d/net.d /etc/conf.d/net
	ln -sf /etc/X11/XF86Config-4.d /etc/X11/XF86Config-4
	#ntpdate timekeeper #Time sync with network
	/etc/init.d/cupsd start 
	/etc/init.d/fcron start
	eend 0
else
	ebegin "Laptop is not Docked. Starting associated services"
	ln -sf /etc/X11/XF86Config-4.l /etc/X11/XF86Config-4
	ln -sf /etc/conf.d/net.l /etc/conf.d/net
	/etc/init.d/pcmcia start #Start PCMCIA services (Modem, ethernet card)
	eend 0
fi

}

stop() {
if [ -s /etc/docked ]
then
	ebegin "Stopping docking services"
	ln -sf /etc/X11/XF86Config-4.l /etc/X11/XF86Config-4
	ln -sf /etc/conf.d/net.l /etc/conf.d/net
	rm -f /etc/docked
	eend 0
fi
}
As you will see I detect whether I am docked by searching for the docking station network card. For hotdocking I think I will need to do something else.

tobz
Top
corefile
n00b
n00b
Posts: 44
Joined: Thu Jun 27, 2002 7:02 am

  • Quote

Post by corefile » Mon Mar 01, 2004 4:58 pm

cool thanks for the script.

FYI I found this project while researching this issue. Might want to check it out.

http://hprofile.sourceforge.net/


-paul
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic