acpithinkpad handle event 0x6060

2014-12-12 Thread Frederic Nowak
Hi! My ThinkPad Edge E130 (see dmesg below) generates this message, if the Fn-key is pressed for a few seconds: acpithinkpad0: unknown event 0x6060 I am not quite sure what the event is for, so the event name in the diff below might be misleadig, but I found some hints that the windows drivers

azalia(4) enable ADC / DAC selection while running

2014-12-14 Thread Frederic Nowak
Hi! The azalia(4) driver blocks switching between digital and analog converters when media is playing and complains about a busy device. The patch below allows switching converters by disconnecting the streams before switching converters and reconnecting them afterwards. This allows to start

Re: Dell R630 high interrupts on acpi0

2014-12-16 Thread Frederic Nowak
Hi! The below diff extracts the memory range information from ACPI. It looks up all the memory ranges in _CRS and calculates minimal and maximal values for pci_machdep.c. I tested this on two amd64 machines and see no difference in pcidump. Do you think we need to keep the old method in case

Re: Dell R630 high interrupts on acpi0

2014-12-18 Thread Frederic Nowak
} if (!aml_evalinteger(sc, node, _BBN, 0, NULL, val)) { dnprintf(10, %s post-bbn: %d, %lld\n, aml_nodename(node), Cheers, Frederic Frederic Nowak f...@mailbox.org hat am 17. Dezember 2014 um 08:22 geschrieben: Hi! The below diff extracts the memory

Re: keyboard and mouse problems

2015-03-15 Thread Frederic Nowak
On 03/11/15 16:11, Theo de Raadt wrote: Two related problems regarding mice and keyboards came to my attention during s2k15 in Brisbane and I worked with jcs@ on solutions. The first problem is some newer machines (such as the thinkpad x1) have keyboard repeat or stuttering during install --

[3/3] replace creat(3) by open(2) - usr.bin

2015-11-10 Thread Frederic Nowak
Hi there, creat(3) "is made obsolete by: open(2)". The diff below replaces all occurrences of creat(path, mode) with open(path, O_CREAT|O_TRUNC|O_WRONLY, mode) in usr.bin. Cheers, Frederic Index: usr.bin/indent/indent.c === RCS

[1/3] replace creat(3) by open(2) - games

2015-11-10 Thread Frederic Nowak
Hi there, creat(3) "is made obsolete by: open(2)". The diff below replaces all occurrences of creat(path, mode) with open(path, O_CREAT | O_TRUNC | O_WRONLY, mode) in games. Cheers, Frederic Index: backgammon/common_source/save.c

[2/3] replace creat(3) by open(2) - libutil

2015-11-10 Thread Frederic Nowak
Hi there, creat(3) "is made obsolete by: open(2)". The diff below replaces one occurrence of creat(path, mode) with open(path, O_CREAT | O_TRUNC | O_WRONLY, mode) in libutil. Cheers, Frederic Index: lib/libutil/uucplock.c ===

ksh(1): utf8 in emacs editing mode

2015-11-10 Thread Frederic Nowak
Hi there, I got annoyed with ksh(1) for messing up my command line after accidentally entering an umlaut and decided to take a stab at teaching it some utf8. The diff is inspired by Ted Unangst's recent patches for e.g. rs[0]. It works for my use cases and seems to handle 2-byte (ßüöä) and

ftp(1): pledge smaller subset in SMALL version

2015-11-01 Thread Frederic Nowak
Hi there, at the moment ftp pledges "proc exec" in its SMALL version, but not otherwise. This seems wrong, because the SMALL version does not support interactive mode (which needs "proc exec" for e.g. the page command), while the !SMALL version does. The patch below switches the two pledges, so

[3/3] replace setbuf(3) etc by setvbuf(3) - libc man pages & regress

2015-11-04 Thread Frederic Nowak
Hi there, setbuf(3) etc "are obsoleted by setvbuf(3)" and "should be avoided". The patch below replaces all occurrences in libc man pages and src/regress. Cheers, Frederic Index: libc/stdio/fclose.3 === RCS file:

[0/3] replace setbuf(3) etc by setvbuf(3) - games

2015-11-04 Thread Frederic Nowak
Hi there, setbuf(3) etc "are obsoleted by setvbuf(3)" and "should be avoided". The patch below updates all occurrences in src/games. Cheers, Frederic Index: atc/graphics.c === RCS file: /cvs/src/games/atc/graphics.c,v retrieving

[1/3] replace setbuf(3) etc by setvbuf(3) - cat, sed & top

2015-11-04 Thread Frederic Nowak
Hi there, setbuf(3) etc "are obsoleted by setvbuf(3)" and "should be avoided". The patch below replaces all occurrences in cat, sed & top. Cheers, Frederic Index: cat/cat.1 === RCS file: /cvs/src/bin/cat/cat.1,v retrieving revision

[2/3] replace setbuf(3) etc by setvbuf(3) - ping, ping6, lptest & rmt

2015-11-04 Thread Frederic Nowak
Hi there, setbuf(3) etc "are obsoleted by setvbuf(3)" and "should be avoided". The patch below replaces all occurrences in ping, ping6, lptest & rmt. Cheers, Frederic Index: ping/ping.c === RCS file: /cvs/src/sbin/ping/ping.c,v

Re: cvs.1: document annotate command

2015-11-05 Thread Frederic Nowak
> On 05 November 2015 at 16:08 Jason McIntyre <j...@kerhand.co.uk> wrote: > > > On Thu, Nov 05, 2015 at 03:11:38PM +0100, Frederic Nowak wrote: > > Hi there, > > > > it seems the documentation for cvs(1) is missing a few commands: > > annotate, edit,

chgrp(1) & chown(8): mark -h and -R as mutually exclusive

2015-11-05 Thread Frederic Nowak
Hi there, the command line arguments -h and -R for chgrp and chown are mutually exclusive. The patch below changes the markup and the usage strings to make this clearer. Cheers, Frederic Index: bin/chmod/chgrp.1 === RCS file:

Re: chgrp(1) & chown(8): mark -h and -R as mutually exclusive

2015-11-05 Thread Frederic Nowak
> On 05 November 2015 at 18:53 Theo de Raadt > wrote: > > > I don't think it makes it clearer; it makes it more confusing. > > The usage messages of programs are not a sufficent grammer to exactly > describe what conflicts with what. Taken too far, it would bewilder >

Re: chgrp(1) & chown(8): mark -h and -R as mutually exclusive

2015-11-06 Thread Frederic Nowak
Hi Ingo, > On 05 November 2015 at 19:02 Ingo Schwarze <schwa...@usta.de> wrote: > > > Hi Frederic, > > Theo de Raadt wrote on Thu, Nov 05, 2015 at 10:53:55AM -0700: > > Frederic Nowak wrote: > > >> the command line arguments -h and -R for chgrp

cvs.1: document annotate command

2015-11-05 Thread Frederic Nowak
Hi there, it seems the documentation for cvs(1) is missing a few commands: annotate, edit, editors, login, logout, pserver, rannotate, rlog, server, version, watch, watchers, unedit The patch below adds a description for annotate. Cheers, Frederic Index: gnu/usr.bin/cvs/man/cvs.1

ftp.1: "dir |more" example not working as intended

2015-11-03 Thread Frederic Nowak
Hi there, I think the "dir |more" example in ftp.1 is not working as intended. ls (and by extension its synonym dir) expects to be called like this: ls [remote-directory [local-file]] Therefore, "dir |more" would print the contents of a remote directory called "|more", which usually doesn't