You are not logged in.

#1 2008-08-12 14:19:24

vdox2
Member
Registered: 2008-08-12
Posts: 5

acpi_osi="Windows 2006"

Hi,

Can anyone say why am I getting this error message:

export: 36: 2006" : bad variable name
Kernel panic - not syncing: Attempted to kill init!

These are my kernel command-line parameters in grub's menu.lst :

root=/dev/sda2 vga=773 acpi_osi="Windows 2006" ro 5

So acpi_osi="Windows 2006" doesn't work for some reason. Any clues

    Thanks,

Last edited by vdox2 (2008-08-13 11:18:29)

Offline

#2 2008-08-13 11:18:36

vdox2
Member
Registered: 2008-08-12
Posts: 5

Re: acpi_osi="Windows 2006"

Bump

Offline

#3 2008-08-13 11:45:13

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: acpi_osi="Windows 2006"

It cant handle spaces. Try doing acpi_osi="Windows\ 2006" ? Why are you passing that option?

Offline

#4 2008-08-13 15:23:49

vdox2
Member
Registered: 2008-08-12
Posts: 5

Re: acpi_osi="Windows 2006"

Do you mean "\" as an escape-character? Like so "Windows\<space>2006"

Well, I still get the same error. So is this a problem with Arch, GRUB or the kernel itself?


My hardware requires this option to make the backlight structures available through acpi.


Thanks,

Last edited by vdox2 (2008-08-13 15:26:07)

Offline

#5 2008-08-15 09:42:22

vdox2
Member
Registered: 2008-08-12
Posts: 5

Re: acpi_osi="Windows 2006"

bumpity

Offline

#6 2008-08-15 10:33:16

eXire
Member
Registered: 2006-08-08
Posts: 15

Re: acpi_osi="Windows 2006"

Use the acpi_os_name parameter instead of acpi_osi

Offline

#7 2008-08-15 17:43:40

vdox2
Member
Registered: 2008-08-12
Posts: 5

Re: acpi_osi="Windows 2006"

Use the acpi_os_name parameter instead of acpi_osi

No good neutral

Offline

#8 2008-10-07 08:05:47

lyman
Member
From: China
Registered: 2008-01-13
Posts: 21
Website

Re: acpi_osi="Windows 2006"

vdox2 wrote:

Use the acpi_os_name parameter instead of acpi_osi

No good neutral

Indeed, I wanna know why, too.


arch x86_64 on Dell E7450

Offline

#9 2008-10-07 08:28:02

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: acpi_osi="Windows 2006"

Let's start by finding what script is being run.

Try this bit of a fiendish hack (be sure to set it in grub with the "e" key as you only want to run it once), making sure you include the backticks:

root=/dev/sda2 vga=773 acpi_osi="`echo ${BASH_SOURCE[0]}; exit`" ro 5

lol tongue cool

That should make the script print its name then quit, killing init, giving you a chance to write the script name down (or you can just remember it if you have a cool memory big_smile) and then we'll have a look inside the script at the export command giving us teh issuez and possibly convince it to like "Windows 2006" (or we can dig a bit deeper and just hardcode the required parameter into whereever it needs to go).

Of course, I have a bad habit of figuring out the hardest, most complex way of doing something, so this might not be the best way to do this tongue It shouldn't break anything tho. big_smile

-dav7

Last edited by dav7 (2008-10-07 08:30:03)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#10 2008-10-07 15:10:46

chochem
Member
From: Denmark
Registered: 2008-03-02
Posts: 176
Website

Re: acpi_osi="Windows 2006"

vdox2 wrote:

Well, I still get the same error. So is this a problem with Arch, GRUB or the kernel itself?

I tried using this sort of argument while trying to solve an ACPI issue with some fellow owners-of-the-same-laptop-model who used ubuntu. They had no problems passing space-inclusive arguments in GRUB so I'd say that it's an Arch thing... either that or the different kernel/GRUB versions. Not that that clears up much of confusion, s'rry neutral

BTW after that experience I wrote a wiki article on DSDT - might be an option for you.

Offline

#11 2008-10-08 13:46:17

lyman
Member
From: China
Registered: 2008-01-13
Posts: 21
Website

Re: acpi_osi="Windows 2006"

dav7 wrote:

Let's start by finding what script is being run.

Try this bit of a fiendish hack (be sure to set it in grub with the "e" key as you only want to run it once), making sure you include the backticks:

root=/dev/sda2 vga=773 acpi_osi="`echo ${BASH_SOURCE[0]}; exit`" ro 5

lol tongue cool

That should make the script print its name then quit, killing init, giving you a chance to write the script name down (or you can just remember it if you have a cool memory big_smile) and then we'll have a look inside the script at the export command giving us teh issuez and possibly convince it to like "Windows 2006" (or we can dig a bit deeper and just hardcode the required parameter into whereever it needs to go).

Of course, I have a bad habit of figuring out the hardest, most complex way of doing something, so this might not be the best way to do this tongue It shouldn't break anything tho. big_smile

-dav7

There can not be space in the value of kernel option acpi_osi parameter in arch.

acpi_osi=Linux -> ok
acpi_osi="Windows 2006" -> kernel panic

There's a space in your code (before exit, right ;P), so it also causes kernel panic.

I'm not sure whether the space problem is a bug. Perhaps ubuntu has its own patch but arch has not?


arch x86_64 on Dell E7450

Offline

#12 2008-10-08 17:12:06

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: acpi_osi="Windows 2006"

Oh, oops. You can safely remove THAT space, but you wouldn't be able to remove the space before the 'echo'... hmm

Time for plan U then.

(U = Unknown tongue)

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#13 2008-10-08 18:30:28

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: acpi_osi="Windows 2006"

Isnt \ / a space in Linux for Directories?


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#14 2008-10-08 19:17:07

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: acpi_osi="Windows 2006"

Uh, not exactly, but you're close.

\ is typically recognized as an escape character, and used to cause a given shell to recognize non-printable characters like spaces as non-delimiting characters rather than delimiting characters, causing the shell to consider hello\ world as 'hello world' rather than 'hello' 'world'.

/ is just used to mark the end of a directory but is in some cases best left dropped, and in other cases not being applicable, this case being the latter.

So "\ " is a non-delimiting space in a shell environment but NOT "a space for directories". There are places (eg, GUI tools) where a \ isn't required, and even in the shell, if you singly quote (in some circumstances, doubly quote as well) a directory specification properly. Then there are crazy situations like for example ssh's command execution mode which is really picky and wants you to quote AND escape directories... heh.

-dav7

Last edited by dav7 (2008-10-08 19:19:25)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#15 2008-10-09 19:40:37

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: acpi_osi="Windows 2006"

I also had this problem when trying to troubleshoot ACPI issues with my laptop a few months back. The latest kernel update fixed all the issues and so I don't need the hack anymore. Still, it's interesting the it works with ubuntu and not Arch.

Offline

#16 2009-07-31 04:34:10

staple
Member
Registered: 2007-09-28
Posts: 81

Re: acpi_osi="Windows 2006"

bump, it would be nice if this was resolved

Offline

#17 2009-07-31 11:29:46

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: acpi_osi="Windows 2006"

this is not a bug tracker, it won't be solved by bumping this thread.

Offline

#18 2009-11-13 19:26:25

webmonarch
Member
Registered: 2009-11-13
Posts: 7

Re: acpi_osi="Windows 2006"

i am a little late to this thread.  I have a Sony Vaio Z which this kernel paremeter enables us to use the onboard NVidia graphics card (instead of the integrated Intel card). 

I was never able to get a value with a space in it to work.  But, based on the brief explaination of this parameter @ http://www.mjmwired.net/kernel/Document … rs.txt#222 I tried using acpi_osi= (ie: no parameter).  It should remove the Windows 2006 (which the !Windows 2006 does), along with everything else. 

It's working for me so far. 

In case this helps anyone (since this thread never saw a resolution).  Obviously, the core issue parameter parsing issue doesn't seem to be fixed.

Offline

#19 2010-01-16 03:11:36

CronLogic
Member
Registered: 2010-01-13
Posts: 6

Re: acpi_osi="Windows 2006"

I found the solution at the bottom of this page:

http://bugs.archlinux.org/task/10002

Add a "#" before the acpi_os_name var like this:

kernel /vmlinuz26 root=/dev/disk/by-uuid/38a1482a-c9ae-472a-bc56-10274772a0fb ro vga=0 resume=/dev/sda8 # acpi_os_name="Windows 2006 SP2"

Offline

Board footer

Powered by FluxBB