How to find acpi drivers for specific acpi device / Solving kernel suspend bug

I’m following https://wiki.ubuntu.com/DebuggingKernelSuspend and it says that I have to reboot the system with sudo sh -c “sync && echo 1 > /sys/power/pm_trace && pm-suspend” and find the lines that says hash matches in dmesg rigth after reboot (what does that mean?) Well, I found two: [ 3.583591] ima: Allocated hash algorithm: sha1 [ 3.593050]…

Details

Timezone Asia/Kolkata changed to PST

What I did: Ran this command: sudo cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime What happened: My local time changed to PST. Now I ran: sudo cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime But my system time didn’t change back to IST. Instead it’s showing PST’s time with IST label. In that picture, I’m pointing to IST Kolkata, but the time zone highlighted…

Details

/dev/mapper/ubuntu–vg-root does not exist, tried all the usual fixes

Sorry about the screenshot but it captures my problem. Ubuntu 19.10 encrypted LVM2 setup I have followed all the guides I could find. Checked rootdelay, /proc/modules exists, did cryptsetup luksOpen etc. as described here – Update initramfs Removed all my nvidia drivers. Removed a broken lvm raid0 setup on drives specifically used to store data.…

Details

Getting the base url using $location in angularJS

I have a url which looks like below http://localhost:8080/test#/users/list When I use the below:- $location.url() gives me -> “users/list” $location.path() gives me -> “users/list” $location.absUrl() gives me ->”http://localhost:8080/test#/users/list” the entire url $location.host() gives me-> “localhost” Is there any way I can get just :- http://localhost:8080/test#/ or even test#/ ? I could get the entire url…

Details

Programmatically set date of NgbDatePicker

I’ve two NgbDatePicker in my component: input( type=”text”, ngbDatepicker, #d=”ngbDatepicker”, [readonly]=”true”, formControlName=’startDate’, (dateSelect)=’setNewMinDate($event)’, ) input( type=”text”, ngbDatepicker, #e=”ngbDatepicker”, [readonly]=”true” formControlName=’endDate’ ) and this handler: @ViewChild(‘e’, {static: false}) endDateComponent: Query; setNewMinDate(e: NgbDateStruct) { const minDate: Moment = moment(e.year + ‘-‘ + e.month + ‘-‘ + e.day); this.createAnnForm.value.endDate = minDate.toISOString(); this.endDateComponent.navigateTo(e); } Form model works with ISO…

Details