Re: couldn't find audio device

2020-04-26 Thread Damien Thiriet

Thanks to your answers, I managed to
record sounds using my webcam, connecting
to rsnd device and, more important, I think
I understood why aucat couldn't find the
device earlier. 

I overlooked man sndio (7) because I 
misunderstood man sndiod (8) and tried to
connect to /dev/ instead of sndio(7) devices
that are described in man aucat(1) -f option.

Best regards and many thanks,

Damien Thiriet 

couldn't find audio device

2020-04-24 Thread Damien Thiriet
Hi misc@,

I am trying to make audio records from my web cam but
cannot succeed in doing it.
I read the FAQ, aucat(1), audioctl(1) and sndiod(8) man pages (but I 
certainly misunderstood them) and searched the mailing list. 
I think they are obvious things I simply don't understand, any help 

Looks like my webcam is recognized by the system

$ dmesg|grep audio
audio0 at azalia1
uaudio0 at uhub0 port 3 configuration 1 interface 3 "Logitech product 0x0808" 
rev 2.00/0.09 addr 2
uaudio0: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
audio1 at uaudio0

I switched recording on, as advised in the FAQ
$ /usr/bin/doas /usr/sbin/sysctl 1 -> 1

$ aucat -f /dev/audio1 -o test.wav
/dev/audio1: couldn't open audio device

$ audioctl -f /dev/audio1
audioctl: /dev/audio1: Device not configured

I understand I should use sndiod, but doing
# sndiod -f /dev/audio1
did not help, even after
# rcctl restart sndiod

What did I miss? My user is member of wheel, I understand he should have
access to /dev/audio1

Damien Thiriet 

Re: Tools for writers

2019-11-06 Thread Damien Thiriet

As an alternative to LaTeX, especially if you design the book,
you may give ConTeXt a chance. Just several elements of
comparison with LaTeX


* quite hard learning-curve
* documentation is hard to find a the beginning. 
  The reference manual is not maintained any more. 
  Things are however better than three years ago: the ConTeXt excursion
  book has been updated. Official documentation is now split into
  manuals dealings with specific issues (tables, biblio, XML and so on).
* ConTeXt is a niche even inside the *TeX world.
* Publishers usually ask for LaTeX.
* You have to design your layout from scratch (no documentclass shiped,
  only paper format)

* you don't need to upload packages, and check for incompabilities.
  I have been using it a lot for three years now, and never loaded any 
  third-part module.
* bibliography out of the box, which is great since I could'nt have
  biber working on OpenBSD.
* metapost graphics out of the box. MP graphics compile faster than TikZ
  since there are tightly integrated with base code (the user base is however 
  much smaller than TikZ)
* its key-value syntax is quite predictible, once you're used at it.
* you can have XML and EPUB output (default is PDF) 
* smaller base than LaTeX if you install it as a standalone (260M,
  mostly because of fonts). I could'nt manage to install the Mkiv standalone 
  (being too stupid to patch its install script), but Hans Hagen
  released a distribution of luametatex, the development version of ConTeXt, a
  few weeks ago and it is available for OpenBSD.

  Troubles with pdf inclusions can be bypassed uploading
  those luametatex binaries after installation


Damien Thiriet

Re: Ergonomic USB wired mouse

2019-08-21 Thread Damien Thiriet
> Hi
> I am preparing switching my desktop from another OS to OpenBSD. Is
> anyone using an Evoluent USB Wired Mouse (C/4 or 4 small) with OpenBSD?
> Or any other great ideas about an ergonomic mouse working with OpenBSD?

I have been using Evoluent USB 4 medium and small with OpenBSD
without any problem for several years.

Damien Thiriet

reboot when 'shutdown -p -h now' called after upgrade

2019-04-29 Thread Damien Thiriet
Hello @misc,

The encoding issue at the beginning of the dmesg I send previously is
connected to st. I don't have this issue on xterm. Sorry for this noise.
This doesn't change the unwanted rebooting issue though.


Damien Thiriet

reboot when 'shutdown -p -h now' called after upgrade to 6.5

2019-04-28 Thread Damien Thiriet
inteldrm0 at pci0 dev 2 function 0 "Intel HD 
Graphics" rev 0x09
Apr 28 18:39:45 valencay /bsd: drm0 at inteldrm0
Apr 28 18:39:45 valencay /bsd: inteldrm0: msi
Apr 28 18:39:45 valencay /bsd: inteldrm0: 1600x900, 32bpp
Apr 28 18:39:45 valencay /bsd: wsdisplay0 at inteldrm0 mux 1: console (std, 
vt100 emulation)
Apr 28 18:39:45 valencay /bsd: wsdisplay0: screen 1-5 added (std, vt100 
Apr 28 18:39:45 valencay /bsd: azalia0 at pci0 dev 3 function 0 "Intel Core 4G 
HD Audio" rev 0x09: msi
Apr 28 18:39:45 valencay /bsd: azalia0: No codecs found
Apr 28 18:39:45 valencay /bsd: xhci0 at pci0 dev 20 function 0 "Intel 8 Series 
xHCI" rev 0x04: msi, xHCI 1.0
Apr 28 18:39:45 valencay /bsd: usb0 at xhci0: USB revision 3.0
Apr 28 18:39:45 valencay /bsd: uhub0 at usb0 configuration 1 interface 0 "Intel 
xHCI root hub" rev 3.00/1.00 addr 1
Apr 28 18:39:45 valencay /bsd: "Intel 8 Series MEI" rev 0x04 at pci0 dev 22 
function 0 not configured
Apr 28 18:39:45 valencay /bsd: em0 at pci0 dev 25 function 0 "Intel I218-V" rev 
0x04: msi, address c0:3f:d5:60:28:92
Apr 28 18:39:45 valencay /bsd: azalia1 at pci0 dev 27 function 0 "Intel 8 
Series HD Audio" rev 0x04: msi
Apr 28 18:39:45 valencay /bsd: azalia1: codecs: Realtek/0x0283
Apr 28 18:39:45 valencay /bsd: audio0 at azalia1
Apr 28 18:39:45 valencay /bsd: ppb0 at pci0 dev 28 function 0 "Intel 8 Series 
PCIE" rev 0xe4
Apr 28 18:39:45 valencay /bsd: pci1 at ppb0 bus 1
Apr 28 18:39:45 valencay /bsd: ppb1 at pci0 dev 28 function 3 "Intel 8 Series 
PCIE" rev 0xe4: msi
Apr 28 18:39:45 valencay /bsd: pci2 at ppb1 bus 2
Apr 28 18:39:45 valencay /bsd: athn0 at pci2 dev 0 function 0 "Atheros AR9285" 
rev 0x01: apic 8 int 19
Apr 28 18:39:45 valencay /bsd: athn0: AR9285 rev 2 (1T1R), ROM rev 14, address 
Apr 28 18:39:45 valencay /bsd: ehci0 at pci0 dev 29 function 0 "Intel 8 Series 
USB" rev 0x04: apic 8 int 23
Apr 28 18:39:45 valencay /bsd: usb1 at ehci0: USB revision 2.0
Apr 28 18:39:45 valencay /bsd: uhub1 at usb1 configuration 1 interface 0 "Intel 
EHCI root hub" rev 2.00/1.00 addr 1
Apr 28 18:39:45 valencay /bsd: pcib0 at pci0 dev 31 function 0 "Intel 8 Series 
LPC" rev 0x04
Apr 28 18:39:45 valencay /bsd: ahci0 at pci0 dev 31 function 2 "Intel 8 Series 
AHCI" rev 0x04: msi, AHCI 1.3
Apr 28 18:39:45 valencay /bsd: ahci0: port 3: 6.0Gb/s
Apr 28 18:39:45 valencay /bsd: scsibus1 at ahci0: 32 targets
Apr 28 18:39:45 valencay /bsd: sd0 at scsibus1 targ 3 lun 0:  SCSI3 0/direct fixed naa.50026b7282069cbc
Apr 28 18:39:45 valencay /bsd: sd0: 228936MB, 512 bytes/sector, 468862128 
sectors, thin
Apr 28 18:39:45 valencay /bsd: ichiic0 at pci0 dev 31 function 3 "Intel 8 
Series SMBus" rev 0x04: apic 8 int 18
Apr 28 18:39:45 valencay /bsd: iic0 at ichiic0
Apr 28 18:39:45 valencay /bsd: spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM 
PC3-12800 SO-DIMM
Apr 28 18:39:45 valencay /bsd: isa0 at pcib0
Apr 28 18:39:45 valencay /bsd: isadma0 at isa0
Apr 28 18:39:45 valencay /bsd: fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
Apr 28 18:39:45 valencay /bsd: com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 
byte fifo
Apr 28 18:39:45 valencay /bsd: pckbc0 at isa0 port 0x60/5 irq 1 irq 12
Apr 28 18:39:45 valencay /bsd: pcppi0 at isa0 port 0x61
Apr 28 18:39:45 valencay /bsd: spkr0 at pcppi0
Apr 28 18:39:45 valencay /bsd: lpt0 at isa0 port 0x378/4 irq 7
Apr 28 18:39:45 valencay /bsd: wbsio0 at isa0 port 0x4e/2: NCT6776F rev 0x33
Apr 28 18:39:45 valencay /bsd: lm1 at wbsio0 port 0xa00/8: NCT6776F
Apr 28 18:39:45 valencay /bsd: vmm0 at mainbus0: VMX/EPT
Apr 28 18:39:45 valencay /bsd: uhidev0 at uhub0 port 2 configuration 1 
interface 0 " USB Keyboard" rev 1.10/1.30 addr 2
Apr 28 18:39:45 valencay /bsd: uhidev0: iclass 3/1
Apr 28 18:39:45 valencay /bsd: ukbd0 at uhidev0: 8 variable keys, 6 key codes
Apr 28 18:39:45 valencay /bsd: wskbd0 at ukbd0: console keyboard, using 
Apr 28 18:39:45 valencay /bsd: uhidev1 at uhub0 port 2 configuration 1 
interface 1 " USB Keyboard" rev 1.10/1.30 addr 2
Apr 28 18:39:45 valencay /bsd: uhidev1: iclass 3/1, 3 report ids
Apr 28 18:39:45 valencay /bsd: uhid0 at uhidev1 reportid 1: input=1, output=0, 
Apr 28 18:39:45 valencay /bsd: uhid1 at uhidev1 reportid 2: input=2, output=0, 
Apr 28 18:39:45 valencay /bsd: uhid2 at uhidev1 reportid 3: input=2, output=1, 
Apr 28 18:39:45 valencay /bsd: uhub2 at uhub1 port 1 configuration 1 interface 
0 "Intel Rate Matching Hub" rev 2.00/0.04 addr 2
Apr 28 18:39:45 valencay /bsd: vscsi0 at root
Apr 28 18:39:45 valencay /bsd: scsibus2 at vscsi0: 256 targets
Apr 28 18:39:45 valencay /bsd: softraid0 at root
Apr 28 18:39:45 valencay /bsd: scsibus3 at softraid0: 256 targets
Apr 28 18:39:45 valencay /bsd: root on sd0a (621da8ac337b7291.a) swap on sd0b 
dump on sd0b
Apr 28 18:39:45 valencay /bsd: fd0 at fdc0 drive 0: density unknown
Apr 28 18:39:45 valencay /bsd: fd1 at fdc0 drive 1: density unknown
Apr 28 18:39:45 valencay sendsyslog: dropped 2 messages, error 57, pid 69550
Apr 28 18:39:45 valencay savecore: no core dump
Apr 28 18:39:53 valencay reorder_kernel: kernel relinking done


Damien Thiriet

cannot perform newline in sed substitution

2018-11-06 Thread Damien Thiriet
Hello misc@,

This is OpenBSD 6.4 stable. Since 6.3, I have troubles with
newline insersion in sed replacement pattern. I remember
doing it in previous versions. I bet I forgot the good way
to do it, but I am not sure.
When I do

echo \\page > foo
sed "s/\\page/\
\\stopDiapo/" foo
The output is
une \stopDiapo

I expected

I tried this both in st and xterm.
echo $LC_CTYPE gives fr_FR.UTF-8

What am I doing wrong?

Damien Thiriet

Troubles with Biber

2018-04-25 Thread Damien Thiriet
Hello misc@,

This is 6.3 -stable.

Fist of all, thanks for packaging biber, it will make my workflow much
shorter when it works.

However it looks like there are several issues with biber :

* dependencies

Many dependencies have to be installed by hand. Most of them 
are available as packages. Maybe they should be added as
dependencies in the texlive package that comes with biber ?
Here's the list : 

One module is not packaged AFAIK : autovivification. 
I installed it manually using cpan. 
When I run biber after those install, there are missing module error, so this 
issue is solved.

* lazy binding

Biber know aborts with this error message :

undefined symbol 'Perl_xs_apiversion_bootcheck' perl: lazy binding failed!

As far as I understand, perl is not compiled with lazy binding. 
I followed this thread suggestion

and set LD_PRELOAD=/usr/lib/, not knowing at all what I
was doing and hopping it wouldn't break anything. 
This didn't fix my issue.

Is there any workaround to this lazy binding issue?


qgis bug since last security update under -stable

2018-04-02 Thread Damien Thiriet
Hello misc@,

This is openbsd-6.2 stable.
I updated qgis on March 22 using openup binaries.
Since this last update, I face an annoying bug : I cannot change the 
look of any vector or spatialite layer.
If I go into Properties > Style , whatever the symbol option chosen, I
get a message stating more or less that « this rendering engine does not 
create graphical interface » (my translation from French locale). 
Didn't found many people complaining about that on the web.

Do other qgis user face the same problem ?
Does it affect -current ? Hopefully not, since 6.3 will come soon…

Best regards,

Damien Thiriet

Don't know if it helps, but dmesg below :

OpenBSD 6.2 (GENERIC.MP) #7: Sat Mar 17 21:38:36 CET 2018
real mem = 4203208704 (4008MB)
avail mem = 4068761600 (3880MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xec170 (83 entries)
bios0: vendor Intel Corp. version "WYLPT10H.86A.0024.2014.0210.1909" date 
bios0: ThinkPenguin PocketWee
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: wakeup devices PXSX(S4) RP01(S4) PXSX(S4) PXSX(S4) PXSX(S4) RP04(S4) 
HDEF(S4) PEG0(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz, 1696.38 MHz
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 1696379000 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz, 1696.07 MHz
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz, 1696.07 MHz
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz, 1696.07 MHz
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP04)
acpiprt3 at acpi0: bus -1 (PEG0)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpipwrres1 at acpi0: FN01, resource for FAN1
acpipwrres2 at acpi0: FN02, resource for FAN2
acpipwrres3 at acpi0: FN03, resource for FAN3
acpipwrres4 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
"INT3F0D" at acpi0 not configured
"NTN0530" at acpi0 not configured
acpibtn0 at acpi0: PWRB
"PNP0C0B" at acpi0 not configured

pkg_add logs

2018-04-02 Thread Damien Thiriet
Hello misc@,

I have been looking for the date I last updated qgis. Thanks to this 
old thread,
I could find what I was looking for date using stat(1).

However man pkg_add states that 
"pkg_add will syslog(3) installations and updates by default"

I checked my syslog.conf but couldn't find the file where pkg_add logs
by default.

So here is my newbie question : where would I find pkg_add logs ?

Best regards,

Damien Thiriet