CPU fan never silent on TP L380

2024-05-27 Thread Fekete Zoltán

Hi There,

I've installed NetBSD 10 on my Thinkpad L380 laptop. Runs pretty well, 
all hardware works properly.
The only issue I experience is that the fan is always running on some 
speed. The noise is quite annoying.
Please note, that the CPU usage is not terribly high at the same time, 
between 3-7% mostly.
If Firefox runs, then the rpm sky rockets and gets back really slowly 
after not using it.


I have a linux installation also on the same device. After booting, some 
time later the fan gets completely silent. It speeds up only when 
computation needs arise, aka. compilation. Even running Firefox is 
completely noiseless.


What do you recommend to set/check/install to achieve the same level of 
silence?


Thank you,

FeZ


Re: x86_64 assembly Hello World

2024-02-12 Thread Fekete Zoltán



Ekkor: 2024. február 12. 11:12:22 CET, "Greg A. Woods"  írta:
>At Sun, 11 Feb 2024 10:39:36 +0100, Fekete Zoltán  
>wrote:
>Subject: x86_64 assembly Hello World
>> 
>> I have played with GNU as and ld, and
>> subsequently created a "Hello World!"
>> program, which I could not find anywhere
>> else so far.
>
>Very nice!
>
>Here's my hello.s written in x86_64 assembler for NetBSD:
>
>   https://github.com/robohack/experiments/blob/master/thello.s
>
>Therein you will find a reference to the following page from whence I
>borrowed most of the implementation:
>
>   https://polprog.net/blog/netbsdasmprog/
>
>Also here's my example true(1) and false(1) written in x86_64 assembler:
>
>   https://github.com/robohack/experiments/blob/master/ttrue.s
>   https://github.com/robohack/experiments/blob/master/tfalse.s
>

Thanks!
I really appreciate your comprehensive comments.
FeZ


Re: x86_64 assembly Hello World

2024-02-11 Thread Fekete Zoltán

2024-02-11 12:21 időpontban Martin Husemann ezt írta:

On Sun, Feb 11, 2024 at 10:39:36AM +0100, Fekete Zoltán wrote:

Hi There!

I have played with GNU as and ld, and subsequently created a "Hello 
World!"

program, which I could not find anywhere else so far.


There are examples (including  x86_64 and i386) installed in
/usr/share/examples/asm/hello

It is a bit controversial if this examples are good, the prefered way 
for
most assembly programs is to link against libc and get the NetBSD 
marker

note from the libc startup code (src/lib/csu/common/sysident.S).

Martin


Thank you for the reference. My intention here was simply to create 
something comparable to the mentioned 
https://wiki.netbsd.org/examples/netbsd_assembly page. A web search for 
"NetBSD assembly" brings up this page as the first result. This page 
demonstrates how simple barebone hardware code operates without relying 
on linked libraries. I found it intriguing to include something that 
works on amd64, similar to the existing 32-bit version, for educational 
purposes.


FeZ


x86_64 assembly Hello World

2024-02-11 Thread Fekete Zoltán

Hi There!

I have played with GNU as and ld, and subsequently created a "Hello 
World!" program, which I could not find anywhere else so far. You can 
access the code at the following link:

https://minux.hu/netbsd-hello-world-assembly-x86-64

This might prove useful to someone, or perhaps a good starting point to 
accomplish this page:

https://wiki.netbsd.org/examples/netbsd_assembly

Cheers,

FeZ


Re: NetBSD 10.0 RC_3 GENERIC amd64 home built kernel doesn't boot

2024-02-04 Thread Fekete Zoltán

2024-02-04 19:54 időpontban Martin Husemann ezt írta:

On Sun, Feb 04, 2024 at 07:18:57PM +0100, Fekete Zoltán wrote:

... boot device: wd0
... root on wd0c dumps on wd0b
... vfs_mountroot: can't open root device
... cannot mount root, error = 6
... root device (default wd0c):


wd0c sounds unlikely for / - can you try answering wd0a at the prompt?
When that works, show dmesg output and fdisk / disklabel output for wd0
and we can try to find out where something goes wrong.

Martin


Thanks to both of you for your efforts. I've figured out that it should 
be a hardware error. Sometimes the system just hangs on boot, and 
sometimes it doesn't. Anyway, it's independent of the kernel used, I'm 
sure. Later, I'll change the disk.


Have a great day,

FeZ


Re: NetBSD 10.0 RC_3 GENERIC amd64 home built kernel doesn't boot

2024-02-04 Thread Fekete Zoltán

2024-02-04 20:02 időpontban mlel...@serpens.de ezt írta:

fekete.zol...@minux.hu (=?UTF-8?Q?Fekete_Zolt=C3=A1n?=) writes:


Hi There,


Hi,

maybe you can provide more information.



I have a laptop from 2013, and I'm playing around with it.
I've just compiled a kernel with the command:



./build.sh -T ../tools -O ../obj -U -N1 -j2 kernel=GENERIC


is that from netbsd-10 sources? Did you change the GENERIC
configuration?



... boot device: wd0
... root on wd0c dumps on wd0b
... vfs_mountroot: can't open root device


wd0c wouldn't be a standard installation. Usually you write a disklabel
that uses wd0a as the root partition.



... cannot mount root, error = 6


error 6 could mean that the wd0 disk doesn't exist or that partition
wd0c doesn't contain a valid filesystem or that you have a stripped
kernel that lacks the filesystem code.



I've checked, and as expected, DKWEDGE options are set properly as
mentioned in 'man dk(4)'.


What DKWEDGE options did you set?




The system just boots fine with the kernel bundled in the installation
image.


Then you could show your disk layout as seen by the bundled kernel,
also what that kernel prints for 'boot device' and 'root on' and
what filesystem you used.


Thanks to both of you for your efforts. I've figured out that it should 
be a hardware error. Sometimes the system just hangs on boot, and 
sometimes it doesn't. Anyway, it's independent of the kernel used, I'm 
sure. Later, I'll change the disk.


Have a great day,
FeZ


NetBSD 10.0 RC_3 GENERIC amd64 home built kernel doesn't boot

2024-02-04 Thread Fekete Zoltán

Hi There,

I have a laptop from 2013, and I'm playing around with it.
I've just compiled a kernel with the command:

./build.sh -T ../tools -O ../obj -U -N1 -j2 kernel=GENERIC

Then copied to / and rebooted.

Unfortunately the boot stops with this error:

... boot device: wd0
... root on wd0c dumps on wd0b
... vfs_mountroot: can't open root device
... cannot mount root, error = 6
... root device (default wd0c):

Here, it is waiting for my input.

I've checked, and as expected, DKWEDGE options are set properly as 
mentioned in 'man dk(4)'.


The system just boots fine with the kernel bundled in the installation 
image.


Never experienced this before. Could somebody pls. help me out?

Thank you,
FeZ


Re: mutt and gmail on NetBSD

2023-12-15 Thread Fekete Zoltán

2023-12-14 17:44 időpontban Ivan "Rambius" Ivanov ezt írta:

Hello,

I am trying to set up mutt with gmail on NetBSD 9.3. I can
successfully fetch my mail, but I cannot send email from mutt. The
error is "No authenticators available". I get it from the command line
and interactively from mutt:

$ echo "test from mutt" | mutt -s "test from mutt" m...@gmail.com
TLSv1.3 connection using TLSv1.3 (TLS_AES_256_GCM_SHA384)
No authenticators available
Could not send the message.

My search about this error showed that people fixed it by installing
the cyrus-sasl-plain package on Fedora and Mac OS X. pkg_info and
pkgin list shows that I have the cyrus-sasl package installed.

My mutt configuration is:

$ cat ~/.muttrc
set ssl_starttls = yes
set ssl_force_tls = yes

set imap_user = 'm...@gmail.com'
set imap_pass = `cat ~/.mutt/.gmailpass`

set from = 'm...@gmail.com'
set realname = 'Me Me'

set folder = imaps://imap.gmail.com
set spoolfile = imaps://imap.gmail.com/INBOX
set postponed = "imaps://imap.gmail.com/[Gmail]/Drafts"

set header_cache = "~/.mutt/cache/headers/"
set message_cachedir = "~/.mutt/cache/bodies/"
set certificate_file = "~/.mutt/certificates"

set smtp_url = 'smtps://m...@gmail.com@smtp.gmail.com'
set smtp_pass = $imap_pass

set move = no
set imap_keepalive = 900

I am using a special app password dedicated to mutt only that I
generated from my google account.

I tried setting smtp_authenticators

set smtp_authenticators = 'login'
or
set smtp_authenticators = 'gssapi:login'

with no success. I am able to fetch my mail over imap so the imap
settings must be correct. If anyone has their gmail working with mutt,
I will be very grateful for your help.

Regards
rambius


Hi Rambius,

I've just opened up my old .muttrc, and found this line:

set smtp_authenticators = 'gssapi:plain'

A haven't been using mutt for a while, but as far as I remember this was 
the heal of this problem.


If it does not work, try recompiling mutt in pkgsrc, and check if you 
had an option which enables this.


$ cd /usr/pkgsrc/mail/mutt
$ make show_options

Hope this helps.

Regards,
FeZ


I have lost my boot menu

2023-11-22 Thread Fekete Zoltán

Hi There,

I need your help. I have reinstalled my NetBSD 10_RC1 on a partition of 
my GPT partitioned disk. However for some reason, the installation was 
unsuccessful when writing the OS sets to the disk. I assume the 
installer wanted to write the USB stick accidentally. The phenomena was 
that the copy operation was getting more and more time, then stalled. 
So, I abandoned the installation and went to the console. There I have 
installed manually. Unfortunately I could not install the boot chain. 
This means, I have to use my linux's grub2 to start NetBSD now. You can 
see my disk layout here:


-bash-5.2# gpt show ld0
   startsize  index  contents
   0   1 PMBR
   1   1 Pri GPT header
   2  32 Pri GPT table
  342014 Unused
2048  262144  1  GPT part - EFI System
  26419233554432  2  GPT part - Linux swap
33818624   134217728  3  GPT part - Linux data
   168036352   201326592  4  GPT part - NetBSD FFSv1/FFSv2
   369362944  1584160768  5  GPT part - Linux data
  19535237121423 Unused
  1953525135  32 Sec GPT table
  1953525167   1 Sec GPT header
-bash-5.2#

The EFI partition for NetBSD is like this:

-bash-5.2# ls -l /boot/efi/EFI/boo-bash-5.2# ls -l 
/boot/efi/EFI/boot/bootx64.efi
-r-xr-xr-x  1 root  wheel  235690 Nov 15 13:56 
/boot/efi/EFI/boot/bootx64.efit/bootx64.efi


I have copied the boot.cfg into the root of the / partition (dk3)

If I want to boot the EFI directly, then it runs the boot program, 
however it does not show the menu at all. I can boot only like this:



boot NAME=NetBSD:netbsd


Or, as I mentioned, with GRUB2 directly with the kernel.

So, I want to have the menu back as normally. I hope my description 
makes sense for you.


Thank you,

FeZ


Re: syncthing: too many open files?

2023-08-26 Thread Fekete Zoltán
Hi,

You might take a look at my notes in this topic here:
https://minux.hu/solving-too-many-open-files-problem-netbsd

Cheers,

FeZ

Ekkor: 2023. augusztus 26. 12:23:50 CEST, Greg Troxel  írta:
>nia  writes:
>
>> Has anyone ran into syncthing spamming the following in its log
>> when faced with a large directory (1402 files, 173 subdirectories,
>> ~22.8 GiB)?
>>
>>  Listen (BEP/tcp): Accepting connection: accept tcp [::]:22000: accept4: too 
>> many open files
>>
>> It's unable to sync anything.
>>
>> kern.maxfiles is 32000, ulimit -n is 3000 (the max it'll let
>> my user account set).
>
>I have a directory (including .stfolder and .stignore):
>
>  11G total
>  6007 files
>  301 directories
>
>and it was working fine on 9 a week ago.  (I have not yet started
>syncthing on 10 with a new layout and move to zfs because I feel I need
>extra backups first, probably unjustified fear.)
>
>I remember this happening, but not super clearly.  I dimly remember
>turning off some watch options and leaving it at periodic scan, and also
>that this used to not be an issue but then maybe a feature appeared.  I
>think there is a code path that instead of inotify uses kqueue and
>somehow adds every file.
>
>

-- 
Ezt a levelet az Android készülékemről küldtem K-9 Mail-el. Elnézést a 
tömörségemért.


CentOS emulation

2023-06-11 Thread Fekete Zoltán
Hi There,

I want to experiment with CentOS on my NetBSD box. Is it enough if I set up 
kernel, /proc, /dev, then copy the contents of /etc and /lib64 from a real 
CentOS installation over /linux/emul? Is there any further specific task I 
should consider?

Thank you,

FeZ


Re: Does any common mortals here (not programmers or sysads) use NetBSD as their daily productivity driver?

2022-10-01 Thread Fekete Zoltán

2022-10-01 11:52 időpontban Ottavio Caruso ezt írta:
On Fri, 30 Sept 2022 at 17:57, Fekete Zoltán  
wrote:


Hi There,

My daily driver with NetBSD 9.3 is a Lenovo Thinkpad t430s (2013)

Works:
- wifi
- i915 display
- mini dispay port output
- Hungarian keyboard
- audio
- webcam
- USB 2.0 and 3.0 ports
- card reader

Works partially:
- touchpad (no two finger gestures)

Does not work:
- display backlight. Workaround: set the brightness when starting up 
the

laptop (BIOS handles).

Generally a very good choice for a portable NetBSD workstation. The
screen resolution and screen quality is a bit low end, though.
Owerall performance is quite impressive, I suggest to install 16GB of
RAM and SSD. Firefox startup time after coldstart is about 2-3 
seconds.

I use that to develop C++ applications using NetBeans IDE. The build
time is acceptable as I can use 4 cores.



I'm not having a go at you, but I stated in my topic "not programmers
or sysads" and I practically got answers only from that category.

So, my impression is: if you're not either a programmer, a sysad or an
NetBSD official developer, stay away.

Yes, I know , there's a bit of unnecessary bitterness in my statement
but please change my mind.


Hi Ottavio,

I understand your point. However there is literally no device available 
commercially with NetBSD preinstalled and supported for the public. This 
means one should have some level of self support in the IT field. That's 
why everybody else drives in your opposite direction on the motorway. I 
mean developers/sysadmins/etc want to share their knowledge to help 
finding an answer.


My answer here, similar to the others are not targeted only for you, but 
for anybody who want to get information in the topic. Somebody who wants 
to try NetBDS or wants a device running smoothly will find this thread. 
This is a public mailing list, researcheable on internet. It's ok it is 
not relevant for you. Please ignore it.


NetBSD is my very favourite operating system personally, and I love 
people here because we are polite, friendly and helpful with each other. 
Please keep this in mind when writing here.


Cheers,
 FeZ


Re: Does any common mortals here (not programmers or sysads) use NetBSD as their daily productivity driver?

2022-09-30 Thread Fekete Zoltán

Hi There,

My daily driver with NetBSD 9.3 is a Lenovo Thinkpad t430s (2013)

Works:
- wifi
- i915 display
- mini dispay port output
- Hungarian keyboard
- audio
- webcam
- USB 2.0 and 3.0 ports
- card reader

Works partially:
- touchpad (no two finger gestures)

Does not work:
- display backlight. Workaround: set the brightness when starting up the 
laptop (BIOS handles).


Generally a very good choice for a portable NetBSD workstation. The 
screen resolution and screen quality is a bit low end, though.
Owerall performance is quite impressive, I suggest to install 16GB of 
RAM and SSD. Firefox startup time after coldstart is about 2-3 seconds.
I use that to develop C++ applications using NetBeans IDE. The build 
time is acceptable as I can use 4 cores.
Another good point on Lenovo is the silent fan even under heavy 
workload.
As the housing has a DVD-ROM bay, you can install an additional HDD bay 
instead of that. Huge advantage!


I hope I could help.

Cheers,
 FeZ


2022-09-30 17:40 időpontban Ron Georgia ezt írta:


On 9/27/22 5:44 AM, Ottavio Caruso wrote:


If so, what can you not do on NetBSD that you can do on any other OS?

I'm pretty sure I'm going to miss DRM. What else do I have to put up 
with?


I run NetBSD 9.3 on a Mac Mini 2014 using modesetting for the video in 
xorg.conf since the intel causes a little tearing while using Firefox 
or Thunderbird. I also have NetBSD 9.3 installed on my Lenovo x200 
(yup, 2009 model) Everything work on that old laptop, including the 
WiFi chip. My main "driver" is a Fedora box. I use that for Azure 
stuff, it has power shell and integrates well with the latest Jetbrains 
products. However I find myself doing most of my development (Python, 
DJango, Postgresql and MySQL) on my NetBSD box. I am also trying 
(futilely is seems) to learn Rust and that's done no the mini as well.


What works well for me:

* PyCharm CE 2021.3.3 (downloaded from Jetbrains and uses openjdk11)

* Python
* Web stuff
* Rust (learning) projects

* I have the Sourcery plugin working... it was a struggle

* Intellij CE 2021.3.2 (pkgin installed)

* Gimp for when I pretend to be creative

* Thunderbird for email
* Firefox with lastpass and ad blocker plugins and NetBSD theme 
installed

* python3.10, go, node

* Hugo

* Django for web app development (python virtual environments work 
great)

* rustup (Thank God I can have rustup)
* Filezilla
* Sakura for terminal. Qterminal and xfce4-terminal also work well, but 
I stopped using those

* fvwm3 for a window manager

* The community is one of the most welcoming groups I've been a part 
of; albeit I am mostly a lurker


What doesn't work for me due mostly due to ignorance, laziness, and 
maybe lack of support


* No vscode or electron
* Pycharm Pro fails

* PyCharm 2019 is pkg installed and is old. Also has a bug. You have to 
change the openjdk17 to openjdk11

* Printing can be done, but I usually struggle to get it right
* Haven't tried scanning docs yet
* The general amount of current desktop apps are lacking, for me not a 
show stopper (behind FreeBSD)
* Can't get current to install on my mini, waiting for NetBSD 10 with a 
worm on my tongue. That's baited (bated) breath. :)
* Sound. I love music and I love it while I code, for now Spotify is 
relegated to my Fedora box


I've used XFCE, Mate, Openbox, fluxbox and ctwm but I've settled on 
fvwm3.


Hope this helps.

--
"There seems to be a scratch in the prism of my understanding."


Re: I can't add accent marks on letters ,only on Qt Applications ! i'm using english and greek keyboards layouts

2022-06-03 Thread Fekete Zoltán
I see now. Sorry I've just read your letter not carefully enough. I have 
no experience with these accent problems honestly.

I hope you'll figure it out.
Cheers,
Fez

2022-06-03 15:27 időpontban chris greek ezt írta:

i can type greek characters i can't add accents to greek letters

Στις Παρ 3 Ιουν 2022 στις 5:40 π.μ., ο/η Fekete Zoltán
 έγραψε:




Ekkor: 2022. június 2. 21:04:48 CEST, chris greek 
 írta:

>I can't add accent marks on letters ,only on Qt Applications ! , i'm
>using english and greek keyboards layouts
>I have installed NetBSD and on the installer i had selected us english
>by mistake
>I can't add accent marks on qt applications like featherpad kate qterminal etc
>Where i can add them on gedit firefox libreoffice etc etc
>
>Something has to do with qt ?
>
>For example to add tone/accent on α
>i press the ; key and the i press the letter ά

Hi Chris,

My first step would be to open a terminal, and as a normal user, issue 
this command:


setxkbmap gr

Then try typing greek characters in libreoffice.

If it works, then write this command into your .xinitrc and/or 
.xsession file, to make it persistent.


Try typing greek characters in your terminal, too. If it does not 
work, then install an appropriate fixed character set (search for it 
with something like 'pkgin se font'), and setup the terminal program 
to use it.


I hope this helps.

Cheers,
Fez


Re: I can't add accent marks on letters ,only on Qt Applications ! i'm using english and greek keyboards layouts

2022-06-02 Thread Fekete Zoltán



Ekkor: 2022. június 2. 21:04:48 CEST, chris greek  
írta:
>I can't add accent marks on letters ,only on Qt Applications ! , i'm
>using english and greek keyboards layouts
>I have installed NetBSD and on the installer i had selected us english
>by mistake
>I can't add accent marks on qt applications like featherpad kate qterminal etc
>Where i can add them on gedit firefox libreoffice etc etc
>
>Something has to do with qt ?
>
>For example to add tone/accent on α
>i press the ; key and the i press the letter ά

Hi Chris,

My first step would be to open a terminal, and as a normal user, issue this 
command:

setxkbmap gr

Then try typing greek characters in libreoffice.

If it works, then write this command into your .xinitrc and/or .xsession file, 
to make it persistent.

Try typing greek characters in your terminal, too. If it does not work, then 
install an appropriate fixed character set (search for it with something like 
'pkgin se font'), and setup the terminal program to use it.

I hope this helps.

Cheers,
Fez


Re: ACPI display brightness on Lenovo Thinkpad T430s

2021-03-11 Thread Fekete Zoltán

On 2021. 03. 11. 15:33, nia wrote:

On Wed, Mar 10, 2021 at 11:23:50AM +0100, Fekete Zoltn wrote:

Hi There,

Please give me advice how to proceed in the topic below. I want to have the
display brightness working.

I have traced the route of the brightness buttonpress (up or down) in the
acpi subsystem in the kernel on my laptop. Everything seems to be alright.
The driver takes the button press, translates into an acpi code, then it
calls the acpi driver, which sends the code to the hardware.
The brightness of the display is not changing, however.

Does anybody know what to do?


I think the brightness tweaking bits were broken when DRM was updated
for NetBSD 9.0, we have another chance to get it right for the next
DRM update. Modifying the hw.acpi.acpiout0.brightness sysctl should
not do nothing.

Currently, I use sysutils/intel-backlight from pkgsrc. It performs
raw access to PCI device nodes, so needs root and kern.securelevel=0
unfortunately.



Thank you, this is the simplest way I could have it working.

Regards,

FeZ


ACPI display brightness on Lenovo Thinkpad T430s

2021-03-10 Thread Fekete Zoltán

Hi There,

Please give me advice how to proceed in the topic below. I want to have 
the display brightness working.


I have traced the route of the brightness buttonpress (up or down) in 
the acpi subsystem in the kernel on my laptop. Everything seems to be 
alright. The driver takes the button press, translates into an acpi 
code, then it calls the acpi driver, which sends the code to the hardware.

The brightness of the display is not changing, however.

Does anybody know what to do?

Some additional things:
- The brightness can be set when I am in the bootloader. So, the 
hardware works.
- The power button does not react in NetBSD, too. It gets the 
buttonpress, but no action is done. Interestingly when I use the docking 
station's power button, the system shuts down properly.


My system:
NetBSD 9 stable, amd64
Lenovo ThinkPad T430s


Thank you in advance,

FeZ


Re: NetBSD NFS - Ubuntu client mount not working

2020-06-24 Thread Fekete Zoltán

2020-06-24 20:43 időpontban Mayuresh ezt írta:

On NetBSD 8.0 amd64, my exports look like:

# showmount -e
Exports list on localhost:
/usr/local/ubuntu/fs   127.0.0.1


I'm running ubuntu VM which is trying to mound the above:

mount -t nfs  10.0.2.2:/usr/local/ubuntu/fs /netbsdfs/
mount.nfs: access denied by server while mounting 
10.0.2.2:/usr/local/ubuntu/fs


At this time NetBSD logs show:

Refused mount RPC from host 127.0.0.1 port 60010

I am able to mount the same share on netbsd itself, but not on Linux.
Anything peculiar needed for this to work?

Mayuresh


Hi Mayuresh,

Run showmount on Ubuntu, too like this:
showmount -e 
Does it show your mount?

If yes:
First I'd check if the userid of Ubuntu user and NetBSD user was 
_equal_.
Second I'd see hosts.allow and hosts.deny on NetBSD server, but it's 
probably not the issue...


Good luck!

FeZ


Re: linux binary convert

2020-04-16 Thread Fekete Zoltán

2020-04-16 16:44 időpontban Martin Husemann ezt írta:

On Thu, Apr 16, 2020 at 04:37:23PM +0200, Fekete Zoltán wrote:

Hi There,

I have a 3rd party, closed-source binary .so file.
I can use it on NetBSD with the COMPAT_LINUX option and some 
other linux

libraries along.
So, I guess there is no linux-specific system call inside (Am I 
wrong?).



You are likely wrong - it could include its own specific syscalls, 
or
otherwise reference the linux C library which contains the linux 
specific

syscalls.

The binaries are recognized as linux binaries and the syscalls 
interpreted

as such.

However I would like to link it to my own native NetBSD binary.


If it contains any syscalls itself, you can not do that.

A whole process is bound to a specific "emulation", which could be 
native

NetBSD, or native NetBSD 32bit binaries, or Linux, or whatever.

If it doesn't do any syscalls, you still need a glibc compatible C 
library

which would collide with the NetBSD native C library.

Easiest way out: compile your own code with a Linux toolchain, link 
against

the closed source .so and run the result under linux emulation.

Martin


Thanks for the answer. You might give me advice how run the built binary 
(linux) in a debugger. The linux gdb doesn't work as it can't see the 
process, NetBSD debugger doesn't know the format.


Development on linux is solution , it'sobvious, but I just want go with 
the experiment as far as possible.


Regards,
FeZ


linux binary convert

2020-04-16 Thread Fekete Zoltán

Hi There,

I have a 3rd party, closed-source binary .so file.
I can use it on NetBSD with the COMPAT_LINUX option and some other linux 
libraries along.

So, I guess there is no linux-specific system call inside (Am I wrong?).

However I would like to link it to my own native NetBSD binary.

Do you know any way to do this? (disassembly/reassembly, objdump, 
objconv, etc.)

Or just instruction how to know more about binary formats?

Thank you in advance,

FeZ


Re: How to set font size of xterm

2020-04-16 Thread Fekete Zoltán

2020-04-16 06:32 időpontban Clay Daniels ezt írta:

I kind of like the simplicity of xterm, and it comes with the basic
twm window manager I use. My problem is the small font size, but I
can't seem to figure out how to set the xterm font size.  Any clues?

Clay


Hi Clay,

The first approach I recommend is to start program xfontsel. There 
select a font you like, and copy its description.

Then try it out like this:
$ xterm -font *-fixed-*-*-*-18-*

You'll see the result in another xterm. Substitute my font description 
with your choosen one.


If you like it, put it into your resource file (~/.Xresources and/or 
~/.Xdefaults):

xterm*font: *-fixed-*-*-*-18-*

Restart your X session, and check if it works.

Read more: man xterm

Regards:
FeZ


How to avoid building LLVM?

2019-06-27 Thread Fekete Zoltán

Hi There,

I used to build the system quite regularly. As far as I can see a very 
long part of the build is building LLVM.

I set MKLLVM=no in /etc/m.conf, however it seems to be uneffective.

Is there a possibility to completly switch off building LLVM?

Thank you,

FeZ


Re: Web + email hosting recommendations

2019-05-09 Thread Fekete Zoltán

Hi,

I confirm, vultr.com is an excellent provider to run NetBSD servers (a 
custom ISO should be uploaded before the installation, yes).
They provide even a super-affordable "only IPV6 host" too, which is 
capable to be a backup, for example.

And there are several other options for different level of needs, too.

Regards,

FeZ


2019-05-09 01:42 időpontban Chris Humphries ezt írta:

I use Vultr.com with custom iso support for NetBSD, with the $5/month
plan. Rock solid and have ipv4 and ipv6 working great (including
reverse DNS).

For mail, I self-host though there are many mail vendors that may fit
the bill. If you're looking for everything bundled you may be
searching for a needle in a haystack of questionable stability.

Check out https://www.privacytools.io/ for privacy related vendors
https://www.privacytools.io/providers/email/ for email providers
specifically.

Vultr is a good deal and their support is great, should you need it. I
only had to use it once to reset my 2FA after I messed up.

You'll probably not need vendor provided NetBSD support, honestly.

Good luck!
Chris



On Tue, May 07, 2019 at 12:46:54PM +0100, Sad Clouds wrote:
Hello, could anyone recommend web hosting providers for the following 
cases:


1. Register domain while it is available and set up basic web + email.
This only needs to be an empty landing page and ability to
send/receive emails at the new domain. There are thousands of
providers out there and I could pick one at random, but would like to
find a BSD friendly provider, so that I don't have to migrate if I
need to upgrade to VPS or Co-location.

2. At some point in the future I would like to run NetBSD or FreeBSD
VPS, so would be good to have recommendations for this case.

Also, I live in the UK, but not sure of hosting in Europe vs US. Are
there any recommendations against holding your data in US data
centres, i.e. DMCA issues, NSA spying, etc?


Re: upgrade - what will happen?

2019-04-30 Thread Fekete Zoltán



2019-04-29 22:04 időpontban Greg A. Woods ezt írta:
At Sun, 28 Apr 2019 11:02:30 +0200, Benny Siegert  
wrote:

Subject: Re: upgrade - what will happen?


When you upgrade, the old library versions stay around, so old
packages continue to work -- with the exception of things depending on
osabi, which might break.


Isn't there's one small caveat about old shared library versions?

Postinstall(8), which will be run by sysinst during an upgrade, or if
you do a manual upgrade and then similarly run "postinstall fix" as is
recommended, will remove "obsolete" files, including old system shared
libraries.

--
Greg A. Woods 

+1 250 762-7675   RoboHack 
Planix, Inc.  Avoncote Farms 


Hi There,

Thank you for all your comments, advices.

The process has run without any issue like this:
1. On the backup 7.2 I've build the 8.0 STABLE release.
2. Copied the new kernel, then reboot.
3. Installed the distribution 8.0, postinstall, etcupdate, reboot.

Now all the packages work as expected. Super reliable system. Congrat 
for developers!!!


At the moment I'm rebuilding the installed packages to 8.0 ABI. Then 
I'll upgrade the production machine with just a binary installation and 
pkgin upgrade.



Regards,

FeZ


Re: upgrade - what will happen?

2019-04-28 Thread Fekete Zoltán

On 2019. április 28. 11:02:56 Benny Siegert  wrote:

However I've a question regarding pkgsrc. There are several own-backed 
pkgsrc packages (build is performed always on the backup machine, and pkgin 
is used to update the online server) installed.


What do you mean by own-backed? Using builtin libraries?

When you upgrade, the old library versions stay around, so old
packages continue to work -- with the exception of things depending on
osabi, which might break.

To be in a supported configuration, it would make sense to rebuild all
packages in the right order. For instance, do

pkg_admin set rebuild=YES \*
pkg_rolling-replace -v

on the backup, then copy over the resulting binary packages and
install them on the other machine.

Or change the pkgin repository to 8.0_2019Q1 and do a "pkgin full-upgrade".




--
Benny


I mean all the packages are built in pkgsrc instance of mine. I don't use 
any external pkgin repo at all.


Anyway, thank you for the instructions.

FeZ





upgrade - what will happen?

2019-04-28 Thread Fekete Zoltán

Hi There,

I've 2 installations of NetBSD 7.2.
One of them is an online multifunction web server, the other one is a backup.

I want to upgrade both to NetBSD 8.0.
I've read the upgrade documentation of the core system, and it's very detailed, 
no question about it.

However I've a question regarding pkgsrc. There are several own-backed pkgsrc 
packages (build is performed always on the backup machine, and pkgin is used to 
update the online server) installed.
If I upgrade the kernel and the core system to 8.0, what will happen to the 
packages which are still built for 7.2?
Would they work? If not, what's the recommended way to upgrade them?

I really don't have too much time (max. an hour in the night time) to do the 
upgrade especially on the online server.

Please give your advices.

Thank you in advance,

FeZ


net/py-gevent build error on NetBSD in pkgsrc-2019Q1

2019-04-26 Thread Fekete Zoltán

Hi There,

I've tried to build py-gevent (python 3.6 version) on NetBSD 7.2

The process breaks with an error:

deps/libuv/src/unix/netbsd.c: In function 'uv_exepath':
deps/libuv/src/unix/netbsd.c:81:12: error: 'KERN_PROC_PATHNAME' 
undeclared (first use in this function)

   mib[3] = KERN_PROC_PATHNAME;

Formerly this macro was defined in sys/sysctl.h as:
#define KERN_PROC_PATHNAME "/proc"

Nowadays this is missing in NetBSD 7.2 and 8.0, too.

If the macro is set, then py-gevent builds normally.

Any idea how to fix? I mean in NetBSD or in the py-gevent package?

Thank you:

FeZ


Re: t_kcov missing

2019-03-20 Thread Fekete Zoltán

2019-03-17 16:26 időpontban Greg Troxel ezt írta:

Fekete Zoltán  writes:


Please help me how to cop with the problem below.
I have tried:
- make cleandir;
- updating cvs tree;
- delete everything under /usr/obj and /usr/tools
- ./build.sh -T ../tools -O ../obj -X ../xsrc -x distribution


Very probably not your issue, but change to absolute paths for T/O, in 
case

that is hitting some bug.


== 1 missing files in DESTDIR 
Files in flist but missing from DESTDIR.
File wasn't installed ?
--
./usr/tests/modules/t_kcov
 end of 1 missing files ==


The source is there.  Look at your build output (that you saved to a
file of course!) and see what happened.

Then

cd /usr/src/tests/modules

/usr/toosl/bin/nbmake-amd64
/usr/toosl/bin/nbmake-amd64 install

and trace what happens and what shows up in objdir and destdir.



Thank you for the advices. However I faced several other problems later 
in the build process.
Therefore I downloaded a completely new source via cvs, and the system 
could build without any issue.


Note: I used Greg's method with absloute filenames in the new build.

Cheers:

FeZ


t_kcov missing

2019-03-17 Thread Fekete Zoltán

Hi There,


Please help me how to cop with the problem below.
I have tried:
- make cleandir;
- updating cvs tree;
- delete everything under /usr/obj and /usr/tools
- ./build.sh -T ../tools -O ../obj -X ../xsrc -x distribution




It's in current, amd64, almost for 1 month now . I have no build flag in 
/etc/mk.conf



Thank you,


FeZ




===
checkflist ===> distrib/sets
cd /usr/src/distrib/sets && DESTDIR=/usr/src/../obj/destdir.amd64 
MACHINE=amd64 MACHINE_ARCH=x86_64 AWK=/usr/src/../tools/bin/nbawk 
CKSUM=/usr/src/../tools/bin/nbcksum DB=/usr/src/../tools/bin/nbdb 
EGREP=/usr/src/../tools/bin/nbgrep\ -E HOST_SH=/bin/sh 
MAKE=/usr/src/../tools/bin/nbmake MKTEMP=/usr/src/../tools/bin/nbmktemp 
MTREE=/usr/src/../tools/bin/nbmtree PAX=/usr/src/../tools/bin/nbpax 
COMPRESS_PROGRAM=/usr/src/../tools/bin/nbxz GZIP=-n XZ_OPT=-9 
TAR_SUFF=tar.xz PKG_CREATE=/usr/src/../tools/bin/nbpkg_create 
SED=/usr/src/../tools/bin/nbsed TSORT=/usr/src/../tools/bin/nbtsort\ -q 
/bin/sh /usr/src/distrib/sets/checkflist -L base,x





== 1 missing files in DESTDIR 
Files in flist but missing from DESTDIR.
File wasn't installed ?
--
./usr/tests/modules/t_kcov
 end of 1 missing files ==




Re: How to setup Realtek 8139 10/100BaseTX cardbus?

2019-01-10 Thread Fekete Zoltán

2019-01-10 22:54 időpontban Csányi Pál ezt írta:

Hi,

when I installed this NetBSD system on my old laptop, I used an USB
Etherneth adapter.

Now I have a Realtek 8139 10/100BaseTX cardbus attached to this laptop
and removed the USB Etherneth adapter.

I am using DHCP client to get an IP address to this system.
How can I setup this PCMCIA card for reaching the Internet?


Hi Pál!

Send me your output of dmesg after booting with the new PCMCAI card.
I've just sent a letter to you in Hungarian, too. Choose the 
communication channel whichever you like.


Regards,
FeZ


modular-xorg-server build failure on NetBSD i386

2018-06-10 Thread Fekete Zoltán

Hi There,

I'm trying to build modular-xorg-server on 2018Q1.
System is NetBSD 8, i386.

The build process stops with this message:

gmake[1]: Entering directory 
'/usr/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.19.6/glamor'
 CC   glamor.lo
 In file included from glamor.c:36:0:
 glamor_priv.h:43:23: fatal error: epoxy/egl.h: No such file or directory
 compilation terminated.
 Makefile:730: recipe for target 'glamor.lo' failed
 gmake[1]: *** [glamor.lo] Error 1
 gmake[1]: Leaving directory 
'/usr/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.19.6/glamor'
 Makefile:778: recipe for target 'all-recursive' failed
 gmake: *** [all-recursive] Error 1
 *** Error code 2


Please help how to proceed.

Thanks,

FeZ


Re: ffmpeg3 text relocations

2018-06-08 Thread Fekete Zoltán

On 08.06.2018 13:11, Fekete Zoltán wrote:

Hi There!

I'm trying to build ffmpeg3 pkgsrc on NetBSD8 i386.
The build is successful, ffmpeg itself is usable.

However I see ugly warnings on every start of the program:

/usr/pkg/lib/ffmpeg3/libavdevice.so.57: text relocations
/usr/pkg/lib/ffmpeg3/libavfilter.so.6: text relocations
/usr/pkg/lib/ffmpeg3/libavformat.so.57: text relocations
/usr/pkg/lib/ffmpeg3/libavcodec.so.57: text relocations
/usr/pkg/lib/ffmpeg3/libavresample.so.3: text relocations
/usr/pkg/lib/ffmpeg3/libpostproc.so.54: text relocations
/usr/pkg/lib/ffmpeg3/libswresample.so.2: text relocations
/usr/pkg/lib/ffmpeg3/libswscale.so.4: text relocations
/usr/pkg/lib/ffmpeg3/libavutil.so.55: text relocations
/usr/pkg/lib/libxvidcore.so.4: text relocations
/usr/pkg/lib/libx264.so.155: text relocations


I've already tried -fpic and -fPIC CFFLAGS to mitigate, but did not 
help.


Anybody any idea?

Thank you:

FeZ


Assembly code?


Hi Kamil,

Yes, ffmpeg3 uses nasm to compile certain parts written in assembly.
My result comes out of the default package compilation.

FeZ


ffmpeg3 text relocations

2018-06-08 Thread Fekete Zoltán

Hi There!

I'm trying to build ffmpeg3 pkgsrc on NetBSD8 i386.
The build is successful, ffmpeg itself is usable.

However I see ugly warnings on every start of the program:

/usr/pkg/lib/ffmpeg3/libavdevice.so.57: text relocations
/usr/pkg/lib/ffmpeg3/libavfilter.so.6: text relocations
/usr/pkg/lib/ffmpeg3/libavformat.so.57: text relocations
/usr/pkg/lib/ffmpeg3/libavcodec.so.57: text relocations
/usr/pkg/lib/ffmpeg3/libavresample.so.3: text relocations
/usr/pkg/lib/ffmpeg3/libpostproc.so.54: text relocations
/usr/pkg/lib/ffmpeg3/libswresample.so.2: text relocations
/usr/pkg/lib/ffmpeg3/libswscale.so.4: text relocations
/usr/pkg/lib/ffmpeg3/libavutil.so.55: text relocations
/usr/pkg/lib/libxvidcore.so.4: text relocations
/usr/pkg/lib/libx264.so.155: text relocations


I've already tried -fpic and -fPIC CFFLAGS to mitigate, but did not 
help.


Anybody any idea?

Thank you:

FeZ


Re: 7.1.2 installer hangs on boot

2018-03-23 Thread Fekete Zoltán

Thank you. NetBSD-8 worked.


2018-03-22 22:34 időpontban m...@netbsd.org ezt írta:

On Thu, Mar 22, 2018 at 04:01:06PM +0100, Fekete Zolt?n wrote:

boot: 


Use netbsd-8
https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-8/201803200350Z/images/NetBSD-8.0_BETA-amd64-install.img.gz

(You need xhci)


7.1.2 installer hangs on boot

2018-03-22 Thread Fekete Zoltán

Hi There,

I want to install NetBSD 7.1.2 amd64.
Install media is an USB stick.
Installer boot loader can see the dev as hd0a.

When booting the kernel it stops at root:
and shows an odd cursor (blinking pell-mell and no input is echoing).

If I press acpi button, then NetBSD shows the normal halt messages and 
powers off as expected.


As an addition, the line before root is:
boot: 


Could anybody see/solve this before?


Thank you,

FeZ


Re: NetBSD disk performance on VirtualBox

2018-03-20 Thread Fekete Zoltán

2018-03-20 00:05 időpontban m...@netbsd.org ezt írta:

On Mon, Mar 19, 2018 at 02:58:06PM +0100, Fekete Zolt?n wrote:

Any setting which influence the test and I didn't apply?


yes, need to figure out what to make GNU dd behave the same.
It has different defaults.


Ok, I installed a precompiled binary of coreutils-8.26.

/usr/pkg/bin/gdd after 3 measurement average: 105 MB/sec. So there is no 
significant difference between BSD dd and GNU dd.


As an addition:

I've run this test on a hardware-installed NetBSD 7.1.2 with 1TB SATA 
drive, and the result is 153 MB/sec.

Intel Core2 Duo CPU, 8GB RAM.

FeZ


Re: NetBSD disk performance on VirtualBox

2018-03-19 Thread Fekete Zoltán

2018-03-19 13:06 időpontban Sad Clouds ezt írta:

Hello, which virtual controller do you use in VirtualBox and do you 
have "Use Host I/O Cache" selected on that controller? If yes, then you 
need to disable it before running I/O tests, otherwise it caches loads 
of data in RAM instead of sending it to disk.


On Mon, Mar 19, 2018 at 8:59 AM, Martin Husemann  
wrote:



On Mon, Mar 19, 2018 at 08:54:12AM +, Chavdar Ivanov wrote:
I'd be also interested in your setup - on a W10 hosted VBox (latest) 
on a
fast M.2 disk I get approximately 5 times slower values, on -current 
amd64,
having disks attached to SATA, SAS and NVMe controllers (almost the 
same,

the SAS one is a little slower than the rest, but nowhere near your
figures. :


Hmm, nothing special, latest VBox, Win7 host, plain old hard disk as
backend store with NTFS on a SATA disk. But the host has *plenty* of 
memory,

maybe I should have used a larger dd to exhaust buffering.

Martin


Hi There,

I've performed a short test. Hereby my results:


HOST: Win7, Intel Core5, 2 CPU's


1. VM: NetBSD 7.1.1, original kernel

Controller: SATA
Driver: AHCI
FS: ffs, default settings
Command: dd if=/dev/zero of=out bs=1m count=1000
Host I/O cache off.

Average result of 3 runs: 105,5 MB/sec


2. VM: Debian 9.0, original kernel

Controller: SATA
Driver: AHCI
FS: ext4, default settings
Command: dd if=/dev/zero of=out bs=1M count=1000
Host I/O cache off.

Average result of 3 runs: 588,0 MB/sec


So, Debian performed almost 6 times faster than NetBSD on the same 
machine.


Any setting which influence the test and I didn't apply?


Rgds,

FeZ


Re: 7_STABLE build fails

2018-02-03 Thread Fekete Zoltán

Hi,

Appending -u after -U does solve the problem?

FeZ


On 2018. február 3. du. 3:36:50 Gua Chung Lim  wrote:


Hi all,

This weekend I cvs(ed) source tree as usual.
Normally, I do it every month.
But this time build failed as followings.
Error message said /usr/tools/bin/nbconfig does not exist.
"./build.sh tools" is required.
But, I've already done "./build.sh tools". Actually, I did many times.
But this error keeps happening.
How to solve it?

Thanks in advance.

root@netbsd:/usr/src# ./build.sh -O ../obj -T ../tools -U kernel=GENERIC
===> build.sh command:./build.sh -O ../obj -T ../tools -U kernel=GENERIC
===> build.sh started:Sat Feb  3 21:10:32 +07 2018
===> NetBSD version:  7.1_STABLE
===> MACHINE: amd64
===> MACHINE_ARCH:x86_64
===> Build platform:  NetBSD 7.1_STABLE amd64
===> HOST_SH: /bin/sh
===> MAKECONF file:   /etc/mk.conf
===> TOOLDIR path:/usr/src/../tools
===> DESTDIR path:/usr/src/../obj/destdir.amd64
===> RELEASEDIR path: /usr/src/../obj/releasedir
===> Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
===> Building kernel without building new tools
===> Building kernel: GENERIC
===> Build directory: /usr/src/../obj/sys/arch/amd64/compile/GENERIC
(cd /usr/obj/sys/arch/amd64/compile/GENERIC && rm -f a.out [Ee]rrs mklog 
core *.core .gdbinit || true)


ERROR: /usr/src/../tools/bin/nbconfig does not exist. You need to 
"./build.sh tools" first.

*** BUILD ABORTED ***
root@netbsd:/usr/src#
root@netbsd:/usr/src# uname -a
NetBSD netbsd.localdomain 7.1_STABLE NetBSD 7.1_STABLE (GENERIC) #5: Wed 
Jan  3 20:11:41 +07 2018  
root@netbsd.localdomain:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

root@netbsd:/usr/src# cd ../tools/bin
root@netbsd:/usr/tools/bin# ls -l
total 178
-rwxr-xr-x  1 root  wheel  180135 Feb  3 20:40 nbmake*
-rwxr-xr-x  1 root  wheel1066 Feb  3 21:10 nbmake-amd64*
root@netbsd:/usr/tools/bin#

--
Gua Chung Lim

To live is to love.





Re: hdaudio jack detection

2017-03-20 Thread Fekete Zoltán



2017-03-20 14:13 időpontban chris...@astron.com ezt írta:

In article <b03d1094-4c3b-b01d-9210-2f350abdc...@minux.hu>,
Fekete Zoltán  <fekete.zol...@minux.hu> wrote:

-=-=-=-=-=-

2017.03.06. 10:33 keltez�ssel, co...@sdf.org �rta:

When jack detection works, it just works.
It works out of the box on my laptop and shows up in dmesg as
hdafg:...unsol (which is also referenced in the hdaudio code).
So when I plug in my headphones it will play to them and not 
speakers.


Some hardware is worse supported.


Hi again,

Finally I could solve the problem by modifying the driver. Now it 
works.


I attached the patch.

So, I don't know what's next.

This patch is more like a hardware dependent tuning. I am not sure its
generally a good pin configuration for all AD 1984A...

Is there anybody around having an Analog Devices AD1984A, and could 
try

my patch?


Can you please send-pr your patch so that it does not get lost? How did
you come up with the patch? From the datasheet, or from another OS's 
driver?


Thanks,

christos



I have created a device.hints for FreeBSD formerly, see here:
https://forums.freebsd.org/threads/52244

And simply adapted that configuration to NetBSD.

I think I will work further, because mixerctl behaves odd after applying
the patch. The outputs.master channel is insensitive, however user apps,
like mplayer or firefox can set volume using the inputs.dac channel.
Besides I have not tested microphones yet.
So the solution is still not perfect. Working on...

Regards,

Zoltán



hdaudio jack detection

2017-03-06 Thread Fekete Zoltán

Hi There,

Does anybody know how to set hdaudio to detect jack on the front panel?

I've seen there are some tools (hdaudioctl, mixerctl) but man pages 
couldn't help, and this mailing list archive gave also no usable info.




Symptom:

Speakers work, plugging jack does nothing.

On freebsd I had to set up pins with device hints, and it worked.

Is there any method for NetBSD?


Thank you:

FeZ



Re: hdaudio jack detection

2017-03-05 Thread Fekete Zoltán

I will give them a try with your method.
I use oss. Nothing else is installed.

FeZ




Re: hdaudio jack detection

2017-03-04 Thread Fekete Zoltán

It doesn't have to be outputs.master2. If you right now
have sound via speakers and not jack, it means that
outputs.master6 handles jack. Try setting outputs.master7
to 0,0 and see if that works.


--
Cág


Hmmm, now the setting is this one, still no success:

outputs.master=0,0 volume delta=6
outputs.master2=0,0 volume delta=256
outputs.master2.mute=off  [ off on ]
outputs.master3=0,0 volume delta=256
outputs.master3.mute=off  [ off on ]
outputs.master4=0,0 volume delta=256
outputs.master4.mute=off  [ off on ]
outputs.master5=0,0 volume delta=256
outputs.master5.mute=off  [ off on ]
outputs.master6=248,248 volume delta=8
outputs.master6.mute=off  [ off on ]
outputs.master7=0,0 volume delta=8
outputs.master7.mute=off  [ off on ]
outputs.dacsel=DAC00  { DAC00 }

Do you see anything that can help?

Thanks,

FeZ


Re: hdaudio jack detection

2017-03-04 Thread Fekete Zoltán

Thank you for the answer.

This is my configuration:

~ $ mixerctl -a | grep outputs

outputs.master=0,0
outputs.master2=0,0
outputs.master2.mute=off
outputs.master3=0,0
outputs.master3.mute=off
outputs.master4=0,0
outputs.master4.mute=off
outputs.master5=0,0
outputs.master5.mute=off
outputs.master6=184,184
outputs.master6.mute=off
outputs.master7=248,248
outputs.master7.mute=off
outputs.dacsel=DAC00

Then I tried to set outout other than maser like this:

~ $ mixerctl -w outputs.master2=100,100
outputs.master2: 0,0 -> 0,0

As you see, setting is unsuccessful.


--

FeZ


2017.03.04. 22:13 keltezéssel, Cág írta:

Fekete Zoltán wrote:


Does anybody know how to set hdaudio to detect jack on the front panel?
I've seen there are some tools (hdaudioctl, mixerctl) but man pages
couldn't help, and this mailing list archive gave also no usable info.
Speakers work, plugging jack does nothing.
On freebsd I had to set up pins with device hints, and it worked.
Is there any method for NetBSD?

Try "mixerctl -a";  for me it's "outputs.master2" that handles jack.
You should have two channels, one for speakers and one for jack.
The louder channel plays the sound so I set "outputs.master"
(speakers) to 0,0 so I can always output to jack.


--
Cág




hdaudio jack detection

2017-03-04 Thread Fekete Zoltán

Hi There,

Does anybody know how to set hdaudio to detect jack on the front panel?

I've seen there are some tools (hdaudioctl, mixerctl) but man pages 
couldn't help, and this mailing list archive gave also no usable info.




Symptom:

Speakers work, plugging jack does nothing.

On freebsd I had to set up pins with device hints, and it worked.

Is there any method for NetBSD?


Thank you:

FeZ