I needed a pc for a project and decided to resurrect an old laptop that has run flawlessly on ubuntu for over a decade. I had tied Linux Lite last year when helping a friend get an old laptop going again by rebuilding it upon Linux Lite. Worked like a charm. So I decided to put it on my old Laptop too. But this time around, my laptop seems to be too much of a challenge for Linux Lite. I'm guessing the age of the laptop is the real issue. I'm hoping for a lot when I try to get such an old (2005) laptop to run on an up-to-date OS. But I've been a linux user for about 10 years now (not an expert - just a user) and I like to think I can get linux to do anything! I've spent time in the past on dozens of pc's troubleshooting audio and video issues - seems to be something that you have to accept when using linux - but I usually resolve the problem within hours. Not this time.
I have spent about 3 days looking at everything there is about getting sound to work including this forum and many others. I have come to the conclusion that it's simply incompatible (but faintly hoping I am wrong). The reason I believe this is I rebooted with an old 12.04 Live CD (where the sound works perfectly) and noted the results of the following command line queries (among others but I found these to be the most revealing):
aplay -l
amixer -c0 scontents
amixer -c0 scontrols
and I only found one thing different: "amixer -c0 scontrols" yields a shorter list of controls in Linux Lite than in 12.04. Mostly 'Master Switch' controls are missing.
My sound card: "aplay -l yields"
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC880 Analog [ALC880 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC880 Digital [ALC880 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
Under Ubuntu 12.04 Live CD "amixer -c0 scontrols" yields
numid=26,iface=MIXER,name='Master Playback Switch'
numid=25,iface=MIXER,name='Master Playback Volume'
numid=4,iface=MIXER,name='Headphone Playback Switch'
numid=3,iface=MIXER,name='Headphone Playback Volume'
numid=27,iface=MIXER,name='PCM Playback Volume'
numid=2,iface=MIXER,name='Front Playback Switch'
numid=1,iface=MIXER,name='Front Playback Volume'
numid=6,iface=MIXER,name='CD Playback Switch'
numid=5,iface=MIXER,name='CD Playback Volume'
numid=8,iface=MIXER,name='Mic Playback Switch'
numid=7,iface=MIXER,name='Mic Playback Volume'
numid=9,iface=MIXER,name='Capture Switch'
numid=10,iface=MIXER,name='Capture Switch',index=1
numid=11,iface=MIXER,name='Capture Switch',index=2
numid=12,iface=MIXER,name='Capture Volume'
numid=13,iface=MIXER,name='Capture Volume',index=1
numid=14,iface=MIXER,name='Capture Volume',index=2
numid=22,iface=MIXER,name='IEC958 Default PCM Playback Switch'
numid=18,iface=MIXER,name='IEC958 Playback Con Mask'
numid=19,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=20,iface=MIXER,name='IEC958 Playback Default'
numid=21,iface=MIXER,name='IEC958 Playback Switch'
numid=24,iface=MIXER,name='Beep Playback Switch'
numid=23,iface=MIXER,name='Beep Playback Volume'
numid=15,iface=MIXER,name='Input Source'
numid=16,iface=MIXER,name='Input Source',index=1
numid=17,iface=MIXER,name='Input Source',index=2
numid=26,iface=MIXER,name='Master Playback Switch'
But under Linux Lite "amixer -c0 scontrols" yields
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'Speaker',0
Simple mixer control 'PCM',0
Simple mixer control 'Surround',0
Simple mixer control 'Center',0
Simple mixer control 'LFE',0
Simple mixer control 'Line',0
Simple mixer control 'Mic',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'Beep',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Capture',2
Simple mixer control 'Channel Mode',0
Simple mixer control 'Input Source',0
Simple mixer control 'Input Source',1
Simple mixer control 'Input Source',2
Simple mixer control 'Loopback Mixing',0
Everything else I have looked at seems identically installed between the 12.04 Live CD and the Linux Lite I have installed.
"lsb_release -a" shows:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Linux Lite 3.8
Release: 16.04
Codename: xenial
I should point out that when playing a sound from any source if I look at "pavucontrol" everything looks fine: i get choices of speakers or headphones as usual, it's using analog stereo output as usual and the volume meter is showing the sound playing (blue bar bouncing around as it should. The conclusion I draw from that is the final connection to the speakers or headphones is not being made correctly. It's not a muting issue (or at least I've unmuted everything there is to unmute). I think it's the driver is simply not compatible.
So anyway, I thought I'd post this to the forum (sorry if I have not adhered to your conventions but forum posting is new to me) and see if someone could suggest a way forward. I'd put another version on the laptop if I could identify a version that would work. Or is there something I'm missing - not inconceivable. It seems to me I've tried just about everything anyone has ever suggested to troubleshoot this issue in the past three days.
Thanks.
I am new to the Linux environment so tell me if I make any mistake:
Just today I installed Linux Lite on my netbook (Lenovo s10-3C) which has a keyboard with spanish layout, on the CS live the keyboard wasn't working (thought it could be some files missing that once fully installed could be easily fixed). Well, I was wrong, I had to use a USB keyboard (Gamdias HERMES) in order to set the password so I can use it, I've tried to change different layout but none seem to work, I've also seen many posts about having the numpad keys set to the JKL,IOP... keys but any keys work (at least for me). Is there any way to solve this?
PD: While in bootup in GRUB all keys do work but once inside the OS they stop working.
Hello all,
For those of you who use Unlockforus mirror for Linux Lite updates, or simply to get your hands in some of the tools I share there with the community, I've rolled out IPv6 support, http2 and added some more muscle to the server. The mirror is now available over HTTP and HTTPS on both protocols IPv4 and IPv6.
https://mirror.unlockforus.com/linuxlite/
http://mirror.unlockforus.com/linuxlite/
![[Image: j1WMb2e.png]](https://i.imgur.com/j1WMb2e.png)
Cheers!
has anyone heard about changing the DNS settings to get a bit more speed and security. Cloudflare says that changing the DNS to 1.1.1.1 will acheive this. any thoughts or has anyone done this? supposedly you can do this to the router and computter.
link to their site...... https://1.1.1.1/
Something about using Linux encourages me to learn C. So I wrote a simple program to output morse code.
I wanted it to play the morse a bit faster but if I reduce the sample lengths any further they fail to play at all. So this looks like it's as far as it will go. Never intended for it to be practical. Just wanted to try something.
I'm not sure if attaching Linux executables is safe or advisable (it isn't on Windows systems). Incase it doesn't work or you want to compile it yourself, here is the code:
// Compilation:
// gcc -o morse morse.c -lao -ldl -lm
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <ao/ao.h>
#include <math.h>
#define bool char
#define true 1
#define false 0
#define dot 25200 // length of dot sound
#define dash 44100 // length of dash sound
#define delay 200000 // delay in microseconds between dots and dashes in morse code
const char* morse[] = {
".-", // A
"-...", // B
"-.-.", // C
"-..", // D
".", // E
"..-.", // F
"--.", // G
"....", // H
"..", // I
".---", // J
"-.-", // K
".-..", // L
"--", // M
"-.", // N
"---", // O
".--.", // P
"--.-", // Q
".-.", // R
"...", // S
"-", // T
"..-", // U
"...-", // V
".--", // W
"-..-", // X
"-.--", // Y
"--..", // Z
"-----", // 0
".----", // 1
"..---", // 2
"...--", // 3
"....-", // 4
".....", // 5
"-....", // 6
"--...", // 7
"---..", // 8
"----." // 9
};
void dotdash(char* code, ao_device* device, char* buffer, char audio, char reveal, char suppress)
{
// exit early if there's nothing to do
if (!audio && suppress) return;
// play dot and dash sounds for each dot and dash in code
for (int i=0; i < strlen(code); i++) {
if (audio) {
switch (code[i]) {
case '.': ao_play(device, buffer, dot); break;
case '-': ao_play(device, buffer, dash); break;
// ignore other characters
}
}
if (reveal && !suppress) {
printf("%c", code[i]);
fflush(stdout);
}
usleep(delay);
}
if (reveal && !suppress) printf(" ");
usleep(delay);
}
int main(int argc, char** argv)
{
ao_device* device;
ao_sample_format format;
char* buffer;
float freq = 1000.0; // the pitch of the sound
int default_driver, buf_size, sample, i;
char ascii, opt, optcount=0;
bool audio=false, reveal=false, suppress=false;
// read options
for (i=1; i<argc; i++) {
if (argv[i][0] == '-' && strlen(argv[i]) > 1) {
opt = (argv[i][1] >= 65 && argv[i][1] <= 90) ? argv[i][1] + 32 : argv[i][1]; // convert to lower case
switch (opt) {
case 'a': audio = true; optcount++; break;
case 'r': reveal = true; optcount++; break;
case 's': suppress=true; optcount++; break;
// ignore all unrecognised options
}
}
}
// the final argument is assumed to be the text to be translated
// initialise default audio driver
if (audio) {
ao_initialize();
default_driver = ao_default_driver_id();
memset(&format, 0, sizeof(format));
format.bits = 16;
format.channels = 2;
format.rate = 44100;
format.byte_format = AO_FMT_LITTLE;
// open audio driver
device = ao_open_live(default_driver, &format, NULL);
if (device == NULL) {
if (!suppress) printf("Error opening audio device.\n");
fprintf(stderr, "Error opening audio device.\n");
} else {
// create morse sound
buf_size = format.bits/8 * format.channels * format.rate;
buffer = calloc(buf_size, sizeof(char));
for (i = 0; i < format.rate; i++) {
sample = (int)(0.75 * 32768.0 * sin(2 * M_PI * freq * ((float) i/format.rate)));
// left and right channel
buffer[4*i] = buffer[4*i+2] = sample & 0xff;
buffer[4*i+1] = buffer[4*i+3] = (sample >> 8) & 0xff;
}
}
}
// disable audio and reveal options if audio failed to initialise
if (device == NULL) {
audio = false;
reveal = false;
}
// usage
if (argc == 1) {
printf("Usage: morse [opt] [text]\n\n");
printf(" -a output audio (requires libao): sudo apt-get install libao-dev\n");
printf(" -r reveal morse as audio is played\n");
printf(" -s suppress text output\n\n");
printf("Translates to international morse code. Put text in quotes if including spaces.\n");
printf("Only alphanumeric characters translated. All other characters are ignored.\n");
// output text translation
} else if (argc > optcount + 1) {
// regardless of audio, if there is no reveal just print the morse quickly
if (!reveal && !suppress) {
for (i=0; i < strlen(argv[argc-1]); i++) {
ascii = argv[argc-1][i];
if (ascii == 32) {
// spaces
printf(" ");
} else if (ascii >= 48 && ascii <= 57) {
// numbers 0 to 9...
printf("%s", morse[ascii-48+26]);
} else if ( (ascii >= 65 && ascii <= 90) || (ascii >=97 && ascii <= 122) ) {
// letters a to z...
if ( ascii >= 97 ) ascii -= 32;
printf("%s", morse[ascii-65]);
}
if (ascii != 32 ) printf(" ");
}
fflush(stdout);
}
// but if there is audio or the morse is being revealed in morse timing then step though it
if (audio || reveal) {
for (i=0; i < strlen(argv[argc-1]); i++) {
ascii = argv[argc-1][i];
if (ascii == 32) {
// spaces
if (!suppress) printf(" ");
usleep(delay*2);
} else if (ascii >= 48 && ascii <= 57) {
// numbers 0 to 9...
dotdash((char*) morse[ascii-48+26], device, buffer, audio, reveal, suppress);
} else if ( (ascii >= 65 && ascii <= 90) || (ascii >=97 && ascii <= 122) ) {
// letters a to z...
if ( ascii >= 97 ) ascii -= 32;
dotdash((char*) morse[ascii-65], device, buffer, audio, reveal, suppress);
}
}
}
if (!suppress) printf("\n");
}
// close and shutdown
if (audio) {
ao_close(device);
ao_shutdown();
}
return (device == NULL) ? 0 : 1;
}I can see things that could be improved but resisting the urge to tinker further. E.g. reveal should still work even if the audio driver fails to load and the final return doesn't need a ternary operator. Must resist urge to tinker...
Expected output:
Usage: morse [opt] [text]
-a output audio (requires libao): sudo apt-get install libao-dev
-r reveal morse as audio is played
-s suppress text output
Translates to international morse code. Put text in quotes if including spaces.
Only alphanumeric characters translated. All other characters are ignored.Any number of options can be given in any order. If using audio, the morse is played slowly enough that you can learn how to recognise the sounds. If you wanted to use it to play fast morse I guess you could sample the raw output into something like Audacity and then speed it up without raising the pitch. If your device doesn't support direct sampling internally then just use a male to male audio jack between the microphone and headphone inputs. Does the job.
Edit:
Have attached an example.mp3 file to show what that the following message sounds like when sped up in Audacity:
"Example of output from the morse program"
Dear All:
I have got an issue with subject USB WLAN adapter. After having made it work using the suggestions/modules addressed here - https://ubuntuforums.org/showthread.php?t=2348667 and here - https://askubuntu.com/questions/820886/p...ect=1&lq=1 I made the following observations:
- On a Medion Akoya E1210 running Lubuntu 4.13.0-37-generic (i686) (17.10), the adapter LED works perfectly, indicating any activity as expected; modules installed to get it operational are referred to in the two hyperlinks above;
- on a Lenovo ThinkCentre M72e DT system running Linux 4.13.0-37-generic (x86_64) (17.10) the adapter was recognized natively - does NOT indicate any activity, i.e., LED does not blink;
- on my DELL Latitude D800 running Linux Lite 3.8 Kernel 4.4.0-118-generic (i686) (16.04), I used the references given in the two hyperlinks above to make it work; the LED does NOT indicate any activity, i.e., LED does NOT blink.
I googled a considerable bit but only found indications for laptops to STOP the blinking of built-in INTEL wireless cards' activity LEDs.
Does anybody out there have a suggestion on how to turn it ON for Linux-based O/Ss? BTW - on Windows-based machines the adapter LED works as expected.
Thanks for any ideas.
-captnemo
I'm running the 3.8 version of LL, and I'd like to use an external monitor with my laptop with the lid closed. Is this possible?
I searched here and came up empty. Also I went into Power Manager and tried all selections of "when lid is closed" (was hoping to see do nothing, but not a choice).
I haven't connected an external monitor to it yet to check the functions, but it doesn't seem as if I'll be able to use an external monitor with my laptop lid closed.
Thinking I must have overlooked something.
Very worrying to see THIS on the Linux Lite Forum. OK just remembered its the first of April :o
[url=https://www.linuxliteos.com/forums/
]
Some time ago, goldfinger wrote an excellent tutorial explaining how to symlink the directories in the /home partition (i.e. Documents, Downloads, Music, etc) to a separate data drive: see https://www.linuxliteos.com/forums/tutor.../#msg39688
The rationale for doing this is that if the OS drive crashes, the personal data files are separate and safe, i.e. no complicated data file recovery needed.
Towards the end of goldfinger's tutorial, he creates symlinks for the directories, using the following format, where /mnt/DATA is the mount point for the separate data drive:
ln -s /mnt/DATA/Documents /home/yourusernameI have a question relating to the above command line: Is this format for creating symlinks the same, whether LL is installed as either "/" only, or installed with separate "/" and "/home" partitions?
Many thanks in advance for your comments ...

