Go to advanced search

by chengjianwen
Sun Nov 15, 2020 2:56 am
Forum: Raspberry Pi OS
Topic: an initramfs question with piserver os
Replies: 3
Views: 243

Re: an initramfs question with piserver os

piserver is a LTSP alternative system mentioned from https://www.raspberrypi.org/blog/piserver/ . Without tf card pi should boot through nfs server severed by an centre server, so the root file system was read-only. so the os piserver supported must be an READ-ONLY os. One can convert a normal os ( ...
by chengjianwen
Fri Nov 13, 2020 3:50 am
Forum: Raspberry Pi OS
Topic: an initramfs question with piserver os
Replies: 3
Views: 243

an initramfs question with piserver os

The piserver support a few os, but they were old, So I tried to convert the latest os. The piserver support a script to do the job, and the converted os worked fine. I want to replace the script with overlayroot to build the os's root read-only, since I using it with piserver's os, and it worked fin...
by chengjianwen
Sun Feb 16, 2020 6:19 am
Forum: Graphics, sound and multimedia
Topic: aplay can't play audio to hdmi out
Replies: 5
Views: 779

Re: aplay can't play audio to hdmi out

It's strangeof the Pi3's HDMI output. My default audio output is set to HDMI. It worked ok for a few days. Today I tried to play /usr/share/sound/sf2/TimGM6mb.sf2 ( I don't kown what is it, just think it should be played because it's location) aplay /usr/share/sound/sf2/TimGM6mb.sf2 and I listen a n...
by chengjianwen
Fri Feb 14, 2020 3:26 am
Forum: Graphics, sound and multimedia
Topic: How to connect micphone's input to HDMI output?
Replies: 3
Views: 387

Re: How to connect micphone's input to HDMI output?

Finally, I find the way to resolve the problem: coding it. I found a sample of it: Simple ALSA app for looping audio from capture to playback https://github.com/zonque/simple-alsa-loop.git I changed rate to 16000, channels to 1, format to 16_LE, Now it worked fine, without latency anymore. The pay f...
by chengjianwen
Thu Feb 13, 2020 12:57 pm
Forum: Graphics, sound and multimedia
Topic: aplay can't play audio to hdmi out
Replies: 5
Views: 779

Re: aplay can't play audio to hdmi out

$ aplay -l **** List of PLAYBACK Hardware Devices **** card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/7 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5...
by chengjianwen
Thu Feb 13, 2020 10:57 am
Forum: Graphics, sound and multimedia
Topic: aplay can't play audio to hdmi out
Replies: 5
Views: 779

Re: aplay can't play audio to hdmi out

I installed a fresh system using latest raspbian and raspbian-lite.
After I change audio output to HDMI, the lite can't work, and the desktop can work.
I don't kown what's the difference of that. Meyba raspbian-lite lost some software.
by chengjianwen
Thu Feb 13, 2020 3:37 am
Forum: Graphics, sound and multimedia
Topic: aplay can't play audio to hdmi out
Replies: 5
Views: 779

aplay can't play audio to hdmi out

I use Rpi 3B+, and install almost latest Raspbian (last year). I tried to use hdmi to play audio files, but failed. I use the command: aplay -D hw:0,1 test.wav But there nothing happend. I use the command amixer cset numid=3 2 to set output to HDMI, and repeat the aplay, but nothing, too. But when I...
by chengjianwen
Wed Feb 12, 2020 4:18 pm
Forum: Graphics, sound and multimedia
Topic: How to connect micphone's input to HDMI output?
Replies: 3
Views: 387

Re: How to connect micphone's input to HDMI output?

Thanks for reply. I tried the alsaloop and can't get it to work. Later I'll try it again. I tried "arecord -t raw -f cd | aplay -t raw -f cd" before. It worked, but had too long latency. Just now I find a way to almost resolve it by modprobe g_audio. Now the latency seems < 1sec. Maybe I used a USB ...
by chengjianwen
Wed Feb 12, 2020 8:06 am
Forum: Graphics, sound and multimedia
Topic: How to connect micphone's input to HDMI output?
Replies: 3
Views: 387

How to connect micphone's input to HDMI output?

Hi, guys, I want't to record my pi's desktop with audio (by an USB micphone) and I bought a HDMI recorder to do it. But I can't get the audio from micphone direct to HDMI out. So I must use arecord command to record the audio, and finally use ffmpeg to merge( or raplace) the audio stream in the gene...
by chengjianwen
Thu Oct 10, 2019 4:45 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: chromium default_flag seems doesn't work
Replies: 0
Views: 1220

chromium default_flag seems doesn't work

I want to add a chromium flag as: --proxy-server="socks://127.0.0.1:1086", and I add the line to /etc/chromium.d/default_flags: export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --proxy-server=socks://127.0.0.1:1086" but it doesn't work. I use command line: chromium --proxy-server="socks://127.0.0.1:1086" to r...
by chengjianwen
Mon Apr 22, 2019 1:02 pm
Forum: Graphics programming
Topic: Dispmanx VNC Server
Replies: 77
Views: 83229

Re: Dispmanx VNC Server

Does anyone known why uinput don't work under X?

I installed dispmanx_vncserver on raspbian, raspbian lite and Raspbian full. It seems there without keyboard and mouse under X.

The modules uinput and evdev are loaded. I searched everywhere and can't find any useful help about it.

Thanks
by chengjianwen
Wed Apr 17, 2019 11:05 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: add users to group in piserver
Replies: 1
Views: 549

Re: add users to group in piserver

I can add users to groups (for example sudo) by edit /etc/security/groups.conf, but it can't affect Raspbian_lite. it worked on Raspbian and raspbian_full.
by chengjianwen
Wed Apr 17, 2019 2:18 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: add users to group in piserver
Replies: 1
Views: 549

add users to group in piserver

Hi, guys I installed RDP and using piserver to create a user to test it. because I want the client to access frame buffer, so I have to add the user to group video. I noticed the users in piserver are saved in LDAP server, so how can I add them to a special group ( for example: video ). Currently th...
by chengjianwen
Mon Apr 15, 2019 1:32 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: piserver nfs performance low
Replies: 9
Views: 1425

Re: piserver nfs performance low

I checked every package generated by check-language-support -l zn_CN, and remove them one by one to test. At last I found fonts-noto-cjk is the problem.
When I remove it, the boot time is no more than one minute. So the problem is resolved.
Thanks very much.
by chengjianwen
Mon Apr 15, 2019 12:47 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: piserver nfs performance low
Replies: 9
Views: 1425

Re: piserver nfs performance low

There is nothing in interface and interface.d directory, and I never configure anytinng about network. only things I did was configure locales, tzdata, and apt-get install `check-language-support -l zh_CN` And after boot, I can start the services use "sudo systemctl start" to start the failed servic...
by chengjianwen
Sun Apr 14, 2019 11:35 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: piserver nfs performance low
Replies: 9
Views: 1425

Re: piserver nfs performance low

systemctl --failed list 5 failed services: apt-daily-upgrade apt-daily dphys-swapfile networking raspi-config and journalctl command's output: -- Logs begin at Fri 2016-11-04 01:16:43 CST, end at Sun 2019-04-14 19:56:27 CST. -- 11月 04 01:16:43 raspberrypi kernel: Booting Linux on physical CPU 0x0 --...
by chengjianwen
Sat Apr 13, 2019 4:03 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: piserver nfs performance low
Replies: 9
Views: 1425

Re: piserver nfs performance low

Normally it should be. But when I installed some extra packages, it wait a long time after show the PIXEL logo screen. the dump command I used: tcpdump -I eth0 port nfs and after a while, there are a series (hundreds of) request/reply packages transferred, and stop for a while (about 10 secs) again:...
by chengjianwen
Sat Apr 13, 2019 3:30 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: piserver nfs performance low
Replies: 9
Views: 1425

piserver nfs performance low

Hi, guys I want to create a 10 Pis classroom and I chose piserver to build that. I installed RDP on an old Fujitsu TX100 s3 server, and it seems good at first. When I added some extra packages for one of the softwares installed in pi server (for example, Raspbian full edition), and found that the bo...
by chengjianwen
Tue Sep 12, 2017 11:33 am
Forum: General discussion
Topic: STICKY: USB boot now working on Pi3
Replies: 544
Views: 347269

Re: STICKY: USB boot now working on Pi3

I tried with my pi3 + pi-driver foundation edition HDD + raspbian-stretch-lite yestoday, it can work. I tried with berryboot then, it worked too. The berryboot support usb-boot and you can append "program_usb_boot_mode=1" to /boot/config.txt to enable it. Sometimes it can't boot when I hot rebooted ...
by chengjianwen
Mon Aug 03, 2015 2:59 am
Forum: Other languages
Topic: 中文-simplified-chinese
Replies: 91
Views: 365516

Re: 中文-simplified-chinese

JohnSmith007 wrote:这个可以做讨论议题么。
http://www.raspberrypi.org/forums/viewtopic.php?t=92658
据说airplay本身就有些卡,有人试过吗
by chengjianwen
Tue May 05, 2015 2:31 am
Forum: Other languages
Topic: 中文-simplified-chinese
Replies: 91
Views: 365516

RPi/Raspbian中文环境设置

Raspbian在初始化设置启动以后,是英文环境,很不适合中国人使用。如果想在Raspbian中使用中文环境,可以通过系统提供的raspi-config系统配置工具,将缺省Locale设置为:zh_CN,Timezone设置为:Asia/Shanghai,重新启动系统并进入图形桌面环境以后,就可以看到Raspbian已经可以显示中文了。

如果需要输入中文,可以安装ibus输入系统,然后选择并安装一个合适的输入法,重新启动图形桌面环境,在IBUS首选项中增加所安装的输入法,这样就可以输入汉字了。
by chengjianwen
Tue Mar 04, 2014 12:11 am
Forum: Other languages
Topic: 中文-simplified-chinese
Replies: 91
Views: 365516

Re: 中文-simplified-chinese

起来,不甘寂寞的人民

Go to advanced search