Laptop

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Tomaka17
Member
Member
Posts: 67
Joined: Thu Oct 02, 2008 8:20 am

Laptop

Post by Tomaka17 »

Hello :)

I just wanted to know if a laptop's keyboard was handled differently than a regular keyboard

Yesterday I burnt my O/S on a CD-ROM and tested it
I works on : Virtual PC, Qemu, BOCHS, my desktop gaming PC (only one year old), another old desktop computer (about 800 Mhz to give you an idea of its age)

But on my laptop I don't get any keyboard input

It's a bit hard to debug this (wasting a CD each time >.>) so should I worry about this or is it just some kind of special hardware?

Thank you
MysteriOS
Currently working on: TCP/IP
johnsa
Member
Member
Posts: 296
Joined: Mon Oct 15, 2007 3:04 pm

Re: Laptop

Post by johnsa »

You could try booting from USB the save burning cd's all the time for testing (unless you're specifically testing the cd-booting part).

I'm using a pair of Dell Latitudes, D830, D620 and their keyboards work perfectly via the std. 64h/60h ports. This includes the laptop kybd as well as the usb one plugged in pre-boot.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Laptop

Post by Combuster »

Your laptop might have an USB style keyboard (and touchpad), rather than a PS/2 one, and there are some actions that disable PS/2 emulation should it be enabled (which usually is a bios setting).

And please do yourself a favor and buy rewritable CDs. There's no need to unnecessarily waste CDs
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: Laptop

Post by pcmattman »

And please do yourself a favor and buy rewritable CDs. There's no need to unnecessarily waste CDs
Or netboot - even easier :)
User avatar
Tomaka17
Member
Member
Posts: 67
Joined: Thu Oct 02, 2008 8:20 am

Re: Laptop

Post by Tomaka17 »

Combuster wrote:And please do yourself a favor and buy rewritable CDs. There's no need to unnecessarily waste CDs
Don't worry it was only the second time I burnt a CD :P
I usually trust emulators but from time to time I want to check if it works on real hardware

The problem with RW is that:
1) I don't have any, and I have a huge number of regular blank CDs
2) I'm not sure if my unstable implementation of the CD-ROMs filesystem is working with CD-RW (I think it's using level 3 or something like that, I didn't read much about it for the moment)

The worse part is that this laptop is the one I'm using to compile my O/S (I'm developping on Windows but using SSH/Samba for compilation)
So netboot won't help...


But the good news is that it's working :)
I disabled the BIOS setting "Enable legacy USB support" (confusing name) and everything is ok =)
Thanks
MysteriOS
Currently working on: TCP/IP
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Laptop

Post by Love4Boobies »

Since the subject of this thread is "Laptop", I guess we can talk about stuff other than keyboards, right? :) I was just curious what differences do you usually have in laptops, besides the ACPI-related stuff which I'm sure everyone is aware of. I did hear that some OSes don't work right on laptops so I'm guessing there's more to it. Any ideas?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Laptop

Post by Brendan »

Hi,
Love4Boobies wrote:Since the subject of this thread is "Laptop", I guess we can talk about stuff other than keyboards, right? :) I was just curious what differences do you usually have in laptops, besides the ACPI-related stuff which I'm sure everyone is aware of. I did hear that some OSes don't work right on laptops so I'm guessing there's more to it. Any ideas?
Probably the biggest thing that worries me about laptops is docking stations. While the OS is running, the user puts their laptop into the docking station and suddenly there's a floppy drive, CD, printer, a different keyboard and a different monitor; and the OS is meant to detect this, auto-configure all the new hardware and bring it all up to speed (potentially including telling applications that the video mode they were using isn't supported on the new monitor and can't be used anymore).


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Laptop

Post by earlz »

Brendan wrote:Hi,
Love4Boobies wrote:Since the subject of this thread is "Laptop", I guess we can talk about stuff other than keyboards, right? :) I was just curious what differences do you usually have in laptops, besides the ACPI-related stuff which I'm sure everyone is aware of. I did hear that some OSes don't work right on laptops so I'm guessing there's more to it. Any ideas?
Probably the biggest thing that worries me about laptops is docking stations. While the OS is running, the user puts their laptop into the docking station and suddenly there's a floppy drive, CD, printer, a different keyboard and a different monitor; and the OS is meant to detect this, auto-configure all the new hardware and bring it all up to speed (potentially including telling applications that the video mode they were using isn't supported on the new monitor and can't be used anymore).


Cheers,

Brendan
I've never actually seen someone use a docking station though... and I never seen them anywhere but online.. so isn't it true that they are becoming much less popular? And yes, this is very worrysome.. the different monitor bit seems the hardest part assuming everything else used firewire or usb (or e-Sata) which btw, has anyone gotten native SATA speed support built into their OS yet?
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Re: Laptop

Post by Craze Frog »

The different monitor part can't be any different from changing resolution on the current monitor...
User avatar
Firestryke31
Member
Member
Posts: 550
Joined: Sat Nov 29, 2008 1:07 pm
Location: Throw a dart at central Texas
Contact:

Re: Laptop

Post by Firestryke31 »

Except wouldn't it be like using a different video card, or using the other port on a multi-monitor video card?
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Re: Laptop

Post by Craze Frog »

Your application shouldn't know what video card is used. It should use the OS-provided graphics API, which should take care of it.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Laptop

Post by Combuster »

<automatic counter for personal-taste-argument>
Your application should know what video card is used, so it can take advantage of its capabilities.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Laptop

Post by Love4Boobies »

Combuster wrote:<automatic counter for personal-taste-argument>
Your application should know what video card is used, so it can take advantage of its capabilities.
Isn't the whole point of DirectX and OpenGL to create a transparent API that will take advantage of any video card designed with them in mind?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Laptop

Post by Combuster »

Ever programmed with OpenGL extensions or nonstandard DirectX features?

<rant>
DirectX provides you with a huge struct containing indices and bitfields that tell you everything that both DX and your video card supports. There are a dozen things that need to be done differently on different pieces hardware. In fact, my 3D game I need 950 lines of code to have a good chance to get working output. And then I'm not even yet displaying things. :-({|=

Then consider OpenGL, which has a wretched history of ATI and NVidia repeatedly providing different extensions for the same functionality in the hopes games will only work on one of the two. :-({|=

Consistent interface, you bet. Basically you're writing 4 graphics engines. One for NVidia crap, one for ATI crap, one for intel crap, and one for worse crap :evil:
</rant>

On the other hand, a single interface using the greatest common denominator doesn't work because that'd be equivalent to the empty set.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Firestryke31
Member
Member
Posts: 550
Joined: Sat Nov 29, 2008 1:07 pm
Location: Throw a dart at central Texas
Contact:

Re: Laptop

Post by Firestryke31 »

Craze Frog wrote:Your application shouldn't know what video card is used. It should use the OS-provided graphics API, which should take care of it.
I wasn't talking about an application or letting it know what hardware there is, I was talking about the OS and letting it know what hardware there is. In order for the OS to properly allow applications to deal with the switch, the OS itself needs to properly deal with the switch. Most (but probably not all) hobby OSs aren't yet to the point where they can deal with that. Even if they can handle switching to a video card that was there since boot up, what about one that was added after boot? And what about other hardware? It'll take a lot of work to get to the point of supporting that kind of thing.
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
Post Reply