Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-05 Thread Pavel Machek
On Thu 2007-07-05 20:43:44, Rafael J. Wysocki wrote: > On Thursday, 5 July 2007 01:25, Pavel Machek wrote: > > > > > > > > > Beep_flags should be removed too if you're sticking with /proc. > > > > > > > > > > > > Fixed. > > > > > > > > > > Ta. But you didn't answer the question - why /proc and

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-05 Thread Pavel Machek
Hi! > > > > Here's the version that uses just one variable, relative to Nigel's > > > > patch. Hmm, and it also closes nasty trap for the user in > > > > acpi_sleep_setup; order of parameters actually mattered there, > > > > acpi_sleep=s3_bios,s3_mode doing something different from > > > >

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-05 Thread Rafael J. Wysocki
On Thursday, 5 July 2007 00:46, Pavel Machek wrote: > Hi! > > > > Here's the version that uses just one variable, relative to Nigel's > > > patch. Hmm, and it also closes nasty trap for the user in > > > acpi_sleep_setup; order of parameters actually mattered there, > > >

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-05 Thread Rafael J. Wysocki
On Thursday, 5 July 2007 01:25, Pavel Machek wrote: > > > > > > > Beep_flags should be removed too if you're sticking with /proc. > > > > > > > > > > Fixed. > > > > > > > > Ta. But you didn't answer the question - why /proc and not sysfs? > > > > > > Do you seriously advocate setting two bits

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-05 Thread Rafael J. Wysocki
On Thursday, 5 July 2007 01:25, Pavel Machek wrote: Beep_flags should be removed too if you're sticking with /proc. Fixed. Ta. But you didn't answer the question - why /proc and not sysfs? Do you seriously advocate setting two bits of one variable from /proc,

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-05 Thread Rafael J. Wysocki
On Thursday, 5 July 2007 00:46, Pavel Machek wrote: Hi! Here's the version that uses just one variable, relative to Nigel's patch. Hmm, and it also closes nasty trap for the user in acpi_sleep_setup; order of parameters actually mattered there, acpi_sleep=s3_bios,s3_mode doing

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-05 Thread Pavel Machek
Hi! Here's the version that uses just one variable, relative to Nigel's patch. Hmm, and it also closes nasty trap for the user in acpi_sleep_setup; order of parameters actually mattered there, acpi_sleep=s3_bios,s3_mode doing something different from acpi_sleep=s3_mode,s3_bios

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-05 Thread Pavel Machek
On Thu 2007-07-05 20:43:44, Rafael J. Wysocki wrote: On Thursday, 5 July 2007 01:25, Pavel Machek wrote: Beep_flags should be removed too if you're sticking with /proc. Fixed. Ta. But you didn't answer the question - why /proc and not sysfs? Do you

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
> > > > > Beep_flags should be removed too if you're sticking with /proc. > > > > > > > > Fixed. > > > > > > Ta. But you didn't answer the question - why /proc and not sysfs? > > > > Do you seriously advocate setting two bits of one variable from /proc, > > and one more bit from /sys? > >

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Nigel Cunningham
Hi. On Thursday 05 July 2007 09:01:09 Pavel Machek wrote: > Hi! > > > > > > @@ -80,9 +82,11 @@ static int __init acpi_sleep_setup(char > > > > > > > > > > __setup("acpi_sleep=", acpi_sleep_setup); > > > > > > > > > > +/* Ouch, we want to delete this. We already have better version in > >

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Hi! > > > > @@ -80,9 +82,11 @@ static int __init acpi_sleep_setup(char > > > > > > > > __setup("acpi_sleep=", acpi_sleep_setup); > > > > > > > > +/* Ouch, we want to delete this. We already have better version in > > > userspace, in > > > > + s2ram from suspend.sf.net project */ > > >

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Nigel Cunningham
Hi. On Thursday 05 July 2007 08:48:59 Pavel Machek wrote: > Hi! > > > Documentation is also an issue. Your patch should update the kernel_parameters > > file so users can know how to get the beeping to happen. It would be nice if > > it mentioned the proc entry too. > > Fixed the docs. Ta.

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Hi! > Documentation is also an issue. Your patch should update the > kernel_parameters > file so users can know how to get the beeping to happen. It would be nice if > it mentioned the proc entry too. Fixed the docs. > > @@ -80,9 +82,11 @@ static int __init acpi_sleep_setup(char > > > >

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Hi! > > Here's the version that uses just one variable, relative to Nigel's > > patch. Hmm, and it also closes nasty trap for the user in > > acpi_sleep_setup; order of parameters actually mattered there, > > acpi_sleep=s3_bios,s3_mode doing something different from > > acpi_sleep=s3_mode,s3_bios

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Nigel Cunningham
Hi. On Thursday 05 July 2007 07:29:07 Pavel Machek wrote: > Here's the version that uses just one variable, relative to Nigel's > patch. Hmm, and it also closes nasty trap for the user in > acpi_sleep_setup; order of parameters actually mattered there, > acpi_sleep=s3_bios,s3_mode doing something

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Rafael J. Wysocki
Hi, On Wednesday, 4 July 2007 23:29, Pavel Machek wrote: > Hi! > > > > > > > Sorry, but I can't resist the opportunity to say "Send a patch!" :) > > > > > > > > > > > > Seriously, though, I'd prefer not to. If we rename that acpi video > > > > > > flags > > > > > > variable (I assume this is

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Hi! > > > > > Sorry, but I can't resist the opportunity to say "Send a patch!" :) > > > > > > > > > > Seriously, though, I'd prefer not to. If we rename that acpi video > > > > > flags > > > > > variable (I assume this is what you're thinking of), we only create > > > > > cause for > > > > >

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Hi! Sorry, but I can't resist the opportunity to say Send a patch! :) Seriously, though, I'd prefer not to. If we rename that acpi video flags variable (I assume this is what you're thinking of), we only create cause for confusion. A variable should for

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Rafael J. Wysocki
Hi, On Wednesday, 4 July 2007 23:29, Pavel Machek wrote: Hi! Sorry, but I can't resist the opportunity to say Send a patch! :) Seriously, though, I'd prefer not to. If we rename that acpi video flags variable (I assume this is what you're thinking of), we only

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Nigel Cunningham
Hi. On Thursday 05 July 2007 07:29:07 Pavel Machek wrote: Here's the version that uses just one variable, relative to Nigel's patch. Hmm, and it also closes nasty trap for the user in acpi_sleep_setup; order of parameters actually mattered there, acpi_sleep=s3_bios,s3_mode doing something

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Hi! Here's the version that uses just one variable, relative to Nigel's patch. Hmm, and it also closes nasty trap for the user in acpi_sleep_setup; order of parameters actually mattered there, acpi_sleep=s3_bios,s3_mode doing something different from acpi_sleep=s3_mode,s3_bios . It

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Hi! Documentation is also an issue. Your patch should update the kernel_parameters file so users can know how to get the beeping to happen. It would be nice if it mentioned the proc entry too. Fixed the docs. @@ -80,9 +82,11 @@ static int __init acpi_sleep_setup(char

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Nigel Cunningham
Hi. On Thursday 05 July 2007 08:48:59 Pavel Machek wrote: Hi! Documentation is also an issue. Your patch should update the kernel_parameters file so users can know how to get the beeping to happen. It would be nice if it mentioned the proc entry too. Fixed the docs. Ta. @@

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Hi! @@ -80,9 +82,11 @@ static int __init acpi_sleep_setup(char __setup(acpi_sleep=, acpi_sleep_setup); +/* Ouch, we want to delete this. We already have better version in userspace, in + s2ram from suspend.sf.net project */ Do we? This version has

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Nigel Cunningham
Hi. On Thursday 05 July 2007 09:01:09 Pavel Machek wrote: Hi! @@ -80,9 +82,11 @@ static int __init acpi_sleep_setup(char __setup(acpi_sleep=, acpi_sleep_setup); +/* Ouch, we want to delete this. We already have better version in userspace, in + s2ram

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-07-04 Thread Pavel Machek
Beep_flags should be removed too if you're sticking with /proc. Fixed. Ta. But you didn't answer the question - why /proc and not sysfs? Do you seriously advocate setting two bits of one variable from /proc, and one more bit from /sys? That's partly why I had a

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-30 Thread Rafael J. Wysocki
Hi, On Saturday, 30 June 2007 12:11, Pavel Machek wrote: > Hi! > > > > > Sorry, but I can't resist the opportunity to say "Send a patch!" :) > > > > > > > > Seriously, though, I'd prefer not to. If we rename that acpi video > > > > flags > > > > variable (I assume this is what you're thinking

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-30 Thread Pavel Machek
Hi! > > > Sorry, but I can't resist the opportunity to say "Send a patch!" :) > > > > > > Seriously, though, I'd prefer not to. If we rename that acpi video flags > > > variable (I assume this is what you're thinking of), we only create cause > > > for > > > confusion. A variable should for

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-30 Thread Rafael J. Wysocki
Hi, On Saturday, 30 June 2007 00:35, Pavel Machek wrote: > Hi! > > > > > ALIGN > > > > .align 4096 > > > > @@ -31,6 +46,11 @@ wakeup_code: > > > > movw%cs, %ax > > > > movw%ax, %ds# Make > > > > ds:0 point to wakeup_start

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-30 Thread Rafael J. Wysocki
Hi, On Saturday, 30 June 2007 00:35, Pavel Machek wrote: Hi! ALIGN .align 4096 @@ -31,6 +46,11 @@ wakeup_code: movw%cs, %ax movw%ax, %ds# Make ds:0 point to wakeup_start movw%ax,

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-30 Thread Pavel Machek
Hi! Sorry, but I can't resist the opportunity to say Send a patch! :) Seriously, though, I'd prefer not to. If we rename that acpi video flags variable (I assume this is what you're thinking of), we only create cause for confusion. A variable should for debugging or for

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-30 Thread Rafael J. Wysocki
Hi, On Saturday, 30 June 2007 12:11, Pavel Machek wrote: Hi! Sorry, but I can't resist the opportunity to say Send a patch! :) Seriously, though, I'd prefer not to. If we rename that acpi video flags variable (I assume this is what you're thinking of), we only create

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-29 Thread Pavel Machek
Hi! > > > ALIGN > > > .align 4096 > > > @@ -31,6 +46,11 @@ wakeup_code: > > > movw%cs, %ax > > > movw%ax, %ds# Make ds:0 > > > point to wakeup_start > > > movw%ax, %ss > > > + > > > + testl $1, beep_flags - wakeup_code > > > + jz

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-29 Thread Stefan Seyfried
On Fri, Jun 29, 2007 at 08:27:12AM +1000, Nigel Cunningham wrote: > > Can we rename/reuse existing flag variable? > > Sorry, but I can't resist the opportunity to say "Send a patch!" :) > > Seriously, though, I'd prefer not to. If we rename that acpi video flags > variable (I assume this is

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-29 Thread Stefan Seyfried
On Fri, Jun 29, 2007 at 08:27:12AM +1000, Nigel Cunningham wrote: Can we rename/reuse existing flag variable? Sorry, but I can't resist the opportunity to say Send a patch! :) Seriously, though, I'd prefer not to. If we rename that acpi video flags variable (I assume this is what you're

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-29 Thread Pavel Machek
Hi! ALIGN .align 4096 @@ -31,6 +46,11 @@ wakeup_code: movw%cs, %ax movw%ax, %ds# Make ds:0 point to wakeup_start movw%ax, %ss + + testl $1, beep_flags - wakeup_code + jz 1f + BEEP +1:

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-28 Thread Nigel Cunningham
Hi. On Friday 29 June 2007 00:25:32 Pavel Machek wrote: > Hi! > > > Hi all > > > > Here's what I have after today's work. > > > > I haven't yet been able to test on x86, but can confirm that it works okay on x86_64. I'm currently working towards testing it on my old Omnibook. My P4 desktop

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-28 Thread Pavel Machek
Hi! > Hi all > > Here's what I have after today's work. > > I haven't yet been able to test on x86, but can confirm that it works okay on > x86_64. I'm currently working towards testing it on my old Omnibook. My P4 > desktop won't resume from suspend to ram at all, and hasn't produced any >

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-28 Thread Pavel Machek
Hi! Hi all Here's what I have after today's work. I haven't yet been able to test on x86, but can confirm that it works okay on x86_64. I'm currently working towards testing it on my old Omnibook. My P4 desktop won't resume from suspend to ram at all, and hasn't produced any beeps.

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-28 Thread Nigel Cunningham
Hi. On Friday 29 June 2007 00:25:32 Pavel Machek wrote: Hi! Hi all Here's what I have after today's work. I haven't yet been able to test on x86, but can confirm that it works okay on x86_64. I'm currently working towards testing it on my old Omnibook. My P4 desktop won't resume

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-21 Thread Rafael J. Wysocki
Hi, On Thursday, 21 June 2007 00:24, Nigel Cunningham wrote: > On Thursday 21 June 2007 08:09:26 Rafael J. Wysocki wrote: > > On Tuesday, 19 June 2007 23:33, Rafael J. Wysocki wrote: > > > On Tuesday, 19 June 2007 13:18, Nigel Cunningham wrote: > > > > Hi all > > > > > > > > Here's what I have

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-21 Thread Rafael J. Wysocki
Hi, On Thursday, 21 June 2007 00:24, Nigel Cunningham wrote: On Thursday 21 June 2007 08:09:26 Rafael J. Wysocki wrote: On Tuesday, 19 June 2007 23:33, Rafael J. Wysocki wrote: On Tuesday, 19 June 2007 13:18, Nigel Cunningham wrote: Hi all Here's what I have after today's work.

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-20 Thread Nigel Cunningham
Hi. On Thursday 21 June 2007 08:09:26 Rafael J. Wysocki wrote: > Hi, > > On Tuesday, 19 June 2007 23:33, Rafael J. Wysocki wrote: > > On Tuesday, 19 June 2007 13:18, Nigel Cunningham wrote: > > > Hi all > > > > > > Here's what I have after today's work. > > > > > > I haven't yet been able to

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-20 Thread Rafael J. Wysocki
Hi, On Tuesday, 19 June 2007 23:33, Rafael J. Wysocki wrote: > On Tuesday, 19 June 2007 13:18, Nigel Cunningham wrote: > > Hi all > > > > Here's what I have after today's work. > > > > I haven't yet been able to test on x86, but can confirm that it works okay > > on > > x86_64. I'm currently

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-20 Thread Rafael J. Wysocki
Hi, On Tuesday, 19 June 2007 23:33, Rafael J. Wysocki wrote: On Tuesday, 19 June 2007 13:18, Nigel Cunningham wrote: Hi all Here's what I have after today's work. I haven't yet been able to test on x86, but can confirm that it works okay on x86_64. I'm currently working towards

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-20 Thread Nigel Cunningham
Hi. On Thursday 21 June 2007 08:09:26 Rafael J. Wysocki wrote: Hi, On Tuesday, 19 June 2007 23:33, Rafael J. Wysocki wrote: On Tuesday, 19 June 2007 13:18, Nigel Cunningham wrote: Hi all Here's what I have after today's work. I haven't yet been able to test on x86, but can

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-19 Thread Rafael J. Wysocki
Hi Nigel, On Tuesday, 19 June 2007 13:18, Nigel Cunningham wrote: > Hi all > > Here's what I have after today's work. > > I haven't yet been able to test on x86, but can confirm that it works okay on > x86_64. I'm currently working towards testing it on my old Omnibook. My P4 > desktop won't

[PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-19 Thread Nigel Cunningham
Hi all Here's what I have after today's work. I haven't yet been able to test on x86, but can confirm that it works okay on x86_64. I'm currently working towards testing it on my old Omnibook. My P4 desktop won't resume from suspend to ram at all, and hasn't produced any beeps. I needed to

[PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-19 Thread Nigel Cunningham
Hi all Here's what I have after today's work. I haven't yet been able to test on x86, but can confirm that it works okay on x86_64. I'm currently working towards testing it on my old Omnibook. My P4 desktop won't resume from suspend to ram at all, and hasn't produced any beeps. I needed to

Re: [PATCH] Optional Beeping During Resume From Suspend To Ram.

2007-06-19 Thread Rafael J. Wysocki
Hi Nigel, On Tuesday, 19 June 2007 13:18, Nigel Cunningham wrote: Hi all Here's what I have after today's work. I haven't yet been able to test on x86, but can confirm that it works okay on x86_64. I'm currently working towards testing it on my old Omnibook. My P4 desktop won't resume